summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-24 14:12:56 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-24 14:12:56 +0200
commit937422fb2f09b8928ec7c2354f74cdd2907314aa (patch)
tree3f8c8b5f66aa1f1e9d179c06b6ae99c9c5ba97ec
parent52b264a97934e981179726a0aefd4a143379fba4 (diff)
downloadcurl-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/url.c b/lib/url.c
index e4c47930a..43b7b1be1 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -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;