1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Skip initial whitespace before testing for EOL.

Submitted in <sxsu1tl6bf2.fsf@florida.arsdigita.de>.
This commit is contained in:
hniksic 2002-01-16 16:59:13 -08:00
parent 2e587c82ed
commit fb2ed23830
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2002-01-17 Hrvoje Niksic <hniksic@arsdigita.com>
* netrc.c (parse_netrc): Skip leading whitespace before testing
whether the line is empty. Empty lines still contain the line
terminator.
2002-01-15 Hrvoje Niksic <hniksic@arsdigita.com>
* gen_sslfunc.c (ssl_iread): Call select on the file descriptor

View File

@ -280,6 +280,10 @@ parse_netrc (const char *path)
p = line;
quote = 0;
/* Skip leading whitespace. */
while (*p && ISSPACE (*p))
p ++;
/* If the line is empty, then end any macro definition. */
if (last_token == tok_macdef && !*p)
/* End of macro if the line is empty. */