1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

Revert "hostip: fix compiler warning: 'variable set but not used'"

This reverts commit a577059f92.

The assignment really needs to be there or we risk working with an
uninitialized pointer.
This commit is contained in:
Daniel Stenberg 2018-03-12 23:52:28 +01:00
parent 981e8f9b88
commit 98eee3396d
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;