]> sjero.net Git - wget/blobdiff - src/url.c
[svn] Fix #20735: == not = in url_string
[wget] / src / url.c
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);