]> sjero.net Git - wget/commitdiff
[svn] Fix #20735: == not = in url_string
authormicah <devnull@localhost>
Thu, 16 Aug 2007 08:27:02 +0000 (01:27 -0700)
committermicah <devnull@localhost>
Thu, 16 Aug 2007 08:27:02 +0000 (01:27 -0700)
src/ChangeLog
src/url.c

index 0ef8b83d9bf0893d3af0b96f5adcc1c572a46573..b283487ea5bf4a63a61f400ef5abbad1a04c0152 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-09  Ralf Wildenhues  <Ralf.Wildenhues <at> 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  <micah@cowan.name>
 
        * init.c (defaults): Content disposition will not be default,
index e95d572ff05377e5b518aa4353675e882e6acd2a..3c38b14a868300290637e50a80bd011e521c6f58 100644 (file)
--- 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);