diff --git a/lib/url.c b/lib/url.c index b672710c52..37b6c0e844 100644 --- a/lib/url.c +++ b/lib/url.c @@ -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;