Skip to content
Permalink
Browse files

urlapi: fix unused variable warning

`dest` is only used with `ENABLE_IPV6`.

Closes #4444
  • Loading branch information...
MarcelRaad committed Sep 30, 2019
1 parent 69d95b6 commit 0f62c9af8bc24245a352363d614b8cf848a43e06
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/urlapi.c
@@ -596,7 +596,9 @@ static CURLUcode hostname_check(struct Curl_URL *u, char *hostname)
size_t hlen = strlen(hostname);

if(hostname[0] == '[') {
#ifdef ENABLE_IPV6
char dest[16]; /* fits a binary IPv6 address */
#endif
const char *l = "0123456789abcdefABCDEF:.";
if(hlen < 5) /* '[::1]' is the shortest possible valid string */
return CURLUE_MALFORMED_INPUT;

0 comments on commit 0f62c9a

Please sign in to comment.
You can’t perform that action at this time.