diff --git a/src/http.c b/src/http.c index 9d714833..8916d2b0 100644 --- a/src/http.c +++ b/src/http.c @@ -1872,7 +1872,7 @@ initialize_request (struct url *u, struct http_stat *hs, int *dt, struct url *pr /* Find the username and password for authentication. */ *user = u->user; *passwd = u->passwd; - search_netrc (u->host, (const char **)&user, (const char **)&passwd, 0); + search_netrc (u->host, (const char **)user, (const char **)passwd, 0); *user = *user ? *user : (opt.http_user ? opt.http_user : opt.user); *passwd = *passwd ? *passwd : (opt.http_passwd ? opt.http_passwd : opt.passwd);