]> granicus.if.org Git - curl/commitdiff
Curl_resolv: fix a gcc -Werror=maybe-uninitialized warning
authorRomain Geissler <romain.geissler@amadeus.com>
Tue, 12 Feb 2019 17:43:55 +0000 (17:43 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 12 Feb 2019 18:19:55 +0000 (19:19 +0100)
Closes #3562

lib/hostip.c

index 0c6615986b30ae0edc3da3cc29684f0eb79d8cda..7909141c1788418d21c6eea8cbfd146c04a4500f 100644 (file)
@@ -543,7 +543,7 @@ int Curl_resolv(struct connectdata *conn,
     /* The entry was not in the cache. Resolve it to IP address */
 
     Curl_addrinfo *addr;
-    int respwait;
+    int respwait = 0;
 
     /* Check what IP specifics the app has requested and if we can provide it.
      * If not, bail out. */