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:
parent
2e587c82ed
commit
fb2ed23830
@ -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>
|
2002-01-15 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||||
|
|
||||||
* gen_sslfunc.c (ssl_iread): Call select on the file descriptor
|
* gen_sslfunc.c (ssl_iread): Call select on the file descriptor
|
||||||
|
@ -280,6 +280,10 @@ parse_netrc (const char *path)
|
|||||||
p = line;
|
p = line;
|
||||||
quote = 0;
|
quote = 0;
|
||||||
|
|
||||||
|
/* Skip leading whitespace. */
|
||||||
|
while (*p && ISSPACE (*p))
|
||||||
|
p ++;
|
||||||
|
|
||||||
/* If the line is empty, then end any macro definition. */
|
/* If the line is empty, then end any macro definition. */
|
||||||
if (last_token == tok_macdef && !*p)
|
if (last_token == tok_macdef && !*p)
|
||||||
/* End of macro if the line is empty. */
|
/* End of macro if the line is empty. */
|
||||||
|
Loading…
Reference in New Issue
Block a user