gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 125/222: urlapi: fix unused variable warning


From: gnunet
Subject: [gnurl] 125/222: urlapi: fix unused variable warning
Date: Thu, 07 Nov 2019 00:10:21 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 0f62c9af8bc24245a352363d614b8cf848a43e06
Author: Marcel Raad <address@hidden>
AuthorDate: Tue Oct 1 00:26:03 2019 +0200

    urlapi: fix unused variable warning
    
    `dest` is only used with `ENABLE_IPV6`.
    
    Closes https://github.com/curl/curl/pull/4444
---
 lib/urlapi.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/urlapi.c b/lib/urlapi.c
index a51428404..1c13077ec 100644
--- a/lib/urlapi.c
+++ b/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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]