summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:29:02 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:13 +0200
commit389426e3d0d8b3b47cdc1ff18eb5a9a00a766615 (patch)
treeeeb1ebc34b10b43f53003d66a3463e4c43e78dd0
parent3ab45650e2de39f602421ca08250d75b5c6b210b (diff)
downloadcurl-389426e3d0d8b3b47cdc1ff18eb5a9a00a766615.tar.gz
url: remove dead code
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/url.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/url.c b/lib/url.c
index e4c1ac838..e4c47930a 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -2761,13 +2761,6 @@ static CURLcode set_login(struct connectdata *conn)
result = CURLE_OUT_OF_MEMORY;
}
- /* if there's a user without password, consider password blank */
- if(conn->user && !conn->passwd) {
- conn->passwd = strdup("");
- if(!conn->passwd)
- result = CURLE_OUT_OF_MEMORY;
- }
-
return result;
}