summaryrefslogtreecommitdiff
path: root/lib/hostip.c
diff options
context:
space:
mode:
authorRomain Geissler <romain.geissler@amadeus.com>2019-02-12 17:43:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2019-02-12 19:19:55 +0100
commitaa1f1d48f3e86fc20c38da635b54ec060d68cb45 (patch)
tree96e0f94abd7f34cb558b51442d9d81c032e0c6ae /lib/hostip.c
parent61496154ce8a6a24213cf3e8d4efcf2378dd4fc0 (diff)
downloadcurl-aa1f1d48f3e86fc20c38da635b54ec060d68cb45.tar.gz
Curl_resolv: fix a gcc -Werror=maybe-uninitialized warning
Closes #3562
Diffstat (limited to 'lib/hostip.c')
-rw-r--r--lib/hostip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c
index 0c6615986..7909141c1 100644
--- a/lib/hostip.c
+++ b/lib/hostip.c
@@ -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. */