diff options
author | Daniel Stenberg <daniel@haxx.se> | 2019-09-19 09:29:02 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2019-09-20 08:07:13 +0200 |
commit | 389426e3d0d8b3b47cdc1ff18eb5a9a00a766615 (patch) | |
tree | eeb1ebc34b10b43f53003d66a3463e4c43e78dd0 | |
parent | 3ab45650e2de39f602421ca08250d75b5c6b210b (diff) |
url: remove dead code
Fixes warning detected by PVS-Studio
Fixes #4374
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -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; } |