aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--netrc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/netrc.c b/netrc.c
index 44339590..e88b78c7 100644
--- a/netrc.c
+++ b/netrc.c
@@ -239,9 +239,6 @@ parse_netrc (file)
else
{
/* Fetch the next token. */
- if (!strcmp (tok, "account"))
- last_token = tok_account;
-
if (!strcmp (tok, "default"))
{
maybe_add_to_list (&current, &retval);
@@ -261,6 +258,9 @@ parse_netrc (file)
else if (!strcmp (tok, "password"))
last_token = tok_password;
+ else if (!strcmp (tok, "account"))
+ last_token = tok_account;
+
else
{
fprintf (stderr, "%s:%d: warning: unknown token \"%s\"\n",