url: fix compiler warning in no-verbose builds

Follow-up from 2f0bb864c12

Closes #7700
This commit is contained in:
Daniel Stenberg 2021-09-10 17:09:05 +02:00
parent 94da56269f
commit e41e1b2a4d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1893,9 +1893,11 @@ static void zonefrom_url(CURLU *uh, struct Curl_easy *data,
scopeidx = if_nametoindex(zoneid);
#endif
if(!scopeidx) {
#ifndef CURL_DISABLE_VERBOSE_STRINGS
char buffer[STRERROR_LEN];
infof(data, "Invalid zoneid: %s; %s", zoneid,
Curl_strerror(errno, buffer, sizeof(buffer)));
#endif
}
else
conn->scope_id = scopeidx;