From: Daniel Stenberg Date: Mon, 12 Mar 2018 22:52:28 +0000 (+0100) Subject: Revert "hostip: fix compiler warning: 'variable set but not used'" X-Git-Tag: curl-7_59_0~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=98eee3396d7e225d74208cc13c21dce853b10082;p=thirdparty%2Fcurl.git Revert "hostip: fix compiler warning: 'variable set but not used'" This reverts commit a577059f92fc65bd6b81717f0737f897a5b34248. The assignment really needs to be there or we risk working with an uninitialized pointer. --- diff --git a/lib/hostip.c b/lib/hostip.c index d2ebe2fa43..8554d39d1e 100644 --- a/lib/hostip.c +++ b/lib/hostip.c @@ -835,7 +835,7 @@ CURLcode Curl_loadhostpairs(struct Curl_easy *data) char *entry_id; size_t entry_len; char address[64]; - char *addresses; + char *addresses = NULL; char *addr_begin; char *addr_end; char *port_ptr;