From: micah Date: Thu, 16 Aug 2007 08:27:02 +0000 (-0700) Subject: [svn] Fix #20735: == not = in url_string X-Git-Tag: v1.13~574 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=91164c956838ad6aed7beb72de566872e3cc6cc7 [svn] Fix #20735: == not = in url_string --- diff --git a/src/ChangeLog b/src/ChangeLog index 0ef8b83d..b283487e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2007-08-09 Ralf Wildenhues gmx.de> + + * src/url.c (url_string): Use comparison, not assignment, in + check for auth_mode == URL_AUTH_HIDE_PASSWD. + 2007-08-08 Micah Cowan * init.c (defaults): Content disposition will not be default, diff --git a/src/url.c b/src/url.c index e95d572f..3c38b14a 100644 --- a/src/url.c +++ b/src/url.c @@ -1836,7 +1836,7 @@ url_string (const struct url *url, enum url_auth_mode auth_mode) quoted_user = url_escape_allow_passthrough (url->user); if (url->passwd) { - if (auth_mode = URL_AUTH_HIDE_PASSWD) + if (auth_mode == URL_AUTH_HIDE_PASSWD) quoted_passwd = HIDDEN_PASSWORD; else quoted_passwd = url_escape_allow_passthrough (url->passwd);