From: Romain Geissler Date: Tue, 12 Feb 2019 17:43:55 +0000 (+0000) Subject: Curl_resolv: fix a gcc -Werror=maybe-uninitialized warning X-Git-Tag: curl-7_64_1~154 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aa1f1d48f3e86fc20c38da635b54ec060d68cb45;p=thirdparty%2Fcurl.git Curl_resolv: fix a gcc -Werror=maybe-uninitialized warning Closes #3562 --- diff --git a/lib/hostip.c b/lib/hostip.c index 0c6615986b..7909141c17 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. */