summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;