1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-23 08:38:49 -05:00

netrc: part of conditional expression is always true: !done

Fixes warning detected by PVS-Studio
Fixes #4374
This commit is contained in:
Daniel Stenberg 2019-09-19 09:34:30 +02:00
parent 317c97bd81
commit 0b90ec9bbf
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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;