diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-03-12 23:52:28 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-03-12 23:52:59 +0100 |
commit | 98eee3396d7e225d74208cc13c21dce853b10082 (patch) | |
tree | 3fe74448f3b65c6f6de9b085b55c7ffa36b94495 /lib | |
parent | 981e8f9b8863bb476caaffc1fafc3d4cad4e6261 (diff) |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hostip.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hostip.c b/lib/hostip.c index d2ebe2fa4..8554d39d1 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; |