aboutsummaryrefslogtreecommitdiffstats
path: root/netrc.c
diff options
context:
space:
mode:
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;