diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-24 14:12:56 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-24 14:12:56 +0200 |
commit | 937422fb2f09b8928ec7c2354f74cdd2907314aa (patch) | |
tree | 3f8c8b5f66aa1f1e9d179c06b6ae99c9c5ba97ec | |
parent | 52b264a97934e981179726a0aefd4a143379fba4 (diff) | |
download | curl-937422fb2f09b8928ec7c2354f74cdd2907314aa.tar.gz |
parseurlandfillconn: does an 'else' please mr compiler?
Attempt to address this:
url.c: In function ‘Curl_connect’:
url.c:1883:13: error: offset outside bounds of constant string [-Werror]
hostname++;
^
-rw-r--r-- | lib/url.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1874,7 +1874,7 @@ static CURLcode parseurlandfillconn(struct Curl_easy *data, /* this is for file:// transfers, get a dummy made */ hostname = (char *)""; - if(hostname[0] == '[') { + else if(hostname[0] == '[') { /* This looks like an IPv6 address literal. See if there is an address scope. */ size_t hlen; |