From 66900c733ccef6a01b8fc6d7ca9f5f9adac7656a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 7 Apr 1999 22:57:47 +0000 Subject: First round of post-5.0.0 buglets. svn path=/trunk/; revision=2430 --- netrc.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'netrc.c') 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; -- cgit v1.2.3