aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1999-04-07 22:57:47 +0000
committerEric S. Raymond <esr@thyrsus.com>1999-04-07 22:57:47 +0000
commit66900c733ccef6a01b8fc6d7ca9f5f9adac7656a (patch)
treef8d21da2f215bd13dc3d8473209b287975535406 /netrc.c
parent69b56c86fb2139aeba8d842f3f158aa4a88d9a5e (diff)
downloadfetchmail-66900c733ccef6a01b8fc6d7ca9f5f9adac7656a.tar.gz
fetchmail-66900c733ccef6a01b8fc6d7ca9f5f9adac7656a.tar.bz2
fetchmail-66900c733ccef6a01b8fc6d7ca9f5f9adac7656a.zip
First round of post-5.0.0 buglets.
svn path=/trunk/; revision=2430
Diffstat (limited to 'netrc.c')
-rw-r--r--netrc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/netrc.c b/netrc.c
index 7c500702..e275c9d3 100644
--- a/netrc.c
+++ b/netrc.c
@@ -298,11 +298,7 @@ search_netrc (list, host, account)
/* Look for the HOST in LIST. */
while (list)
{
- if (!list->host)
- /* We hit the default entry. */
- break;
-
- else if (!strcmp(list->host, host))
+ if (list->host && !strcmp(list->host, host))
if (!list->account || !strcmp(list->account, account))
/* We found a matching entry. */
break;