]> sjero.net Git - wget/blobdiff - src/netrc.c
[svn] Reset the QUOTE flag after the closing quote.
[wget] / src / netrc.c
index 91a1d80e6608894707cdcad1fcc559fb8a47c06c..1a16b0a87ba5e3fe388e91ce1f64d56b9aac51f1 100644 (file)
@@ -328,9 +328,13 @@ parse_netrc (const char *path)
            p ++;
          }
 
-         /* if field was quoted, squash the trailing quotation mark */
+         /* If field was quoted, squash the trailing quotation mark
+            and reset quote flag.  */
          if (quote)
-           shift_left(p);
+           {
+             shift_left (p);
+             quote = 0;
+           }
 
          /* Null-terminate the token, if it isn't already.  */
          if (*p)