From 0b90ec9bbf6ce6d70ae837e5f05d2d449b261417 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Sep 2019 09:34:30 +0200 Subject: netrc: part of conditional expression is always true: !done Fixes warning detected by PVS-Studio Fixes #4374 --- lib/netrc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/netrc.c') diff --git a/lib/netrc.c b/lib/netrc.c index c74065e81..1c9da3199 100644 --- a/lib/netrc.c +++ b/lib/netrc.c @@ -88,7 +88,7 @@ static int parsenetrc(const char *host, if(tok && *tok == '#') /* treat an initial hash as a comment line */ continue; - while(!done && tok) { + while(tok) { if((login && *login) && (password && *password)) { done = TRUE; -- cgit v1.2.3