diff options
Diffstat (limited to 'lib/urlapi.c')
-rw-r--r-- | lib/urlapi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/urlapi.c b/lib/urlapi.c index 0d05f4d92..3fef2fcf7 100644 --- a/lib/urlapi.c +++ b/lib/urlapi.c @@ -605,9 +605,9 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname) /* only valid letters are ok */ len = strspn(hostname, l); if(hlen != len) { - /* this could now be '%[zone id]' */ - char zoneid[16]; if(hostname[len] == '%') { + /* this could now be '%[zone id]' */ + char zoneid[16]; int i = 0; char *h = &hostname[len + 1]; /* pass '25' if present and is a url encoded percent sign */ |