From dd356aff3d7a298a4f95c62bf9e4393a5b19a6c0 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sat, 25 Oct 2003 17:03:38 -0700 Subject: [PATCH] [svn] Reset the QUOTE flag after the closing quote. --- src/ChangeLog | 5 +++++ src/netrc.c | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f7e0e94f..97eca1fa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2003-10-26 Hrvoje Niksic + + * netrc.c (parse_netrc): Reset the QUOTE flag after the closing + quote. + 2003-10-25 Hrvoje Niksic * url.c (is_valid_ipv6_address): Reformat to GNU coding style. diff --git a/src/netrc.c b/src/netrc.c index 91a1d80e..1a16b0a8 100644 --- a/src/netrc.c +++ b/src/netrc.c @@ -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) -- 2.39.2