diff options
-rw-r--r-- | lib/libfetch/http.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libfetch/http.c b/lib/libfetch/http.c index f678b36..51cac70 100644 --- a/lib/libfetch/http.c +++ b/lib/libfetch/http.c @@ -1689,10 +1689,8 @@ http_request_body(struct url *URL, const char *op, struct url_stat *us, goto ouch; } } else if (fetch_netrc_auth(url) == 0) { - aparams.user = url->user ? - strdup(url->user) : strdup(""); - aparams.password = url->pwd ? - strdup(url->pwd) : strdup(""); + aparams.user = strdup(url->user); + aparams.password = strdup(url->pwd); } else if (fetchAuthMethod && fetchAuthMethod(url) == 0) { aparams.user = strdup(url->user); |