From: Daniel Stenberg Date: Thu, 19 Sep 2019 07:34:30 +0000 (+0200) Subject: netrc: part of conditional expression is always true: !done X-Git-Tag: curl-7_67_0~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b90ec9bbf6ce6d70ae837e5f05d2d449b261417;p=thirdparty%2Fcurl.git netrc: part of conditional expression is always true: !done Fixes warning detected by PVS-Studio Fixes #4374 --- diff --git a/lib/netrc.c b/lib/netrc.c index c74065e813..1c9da31993 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;