mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 16:48: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:
parent
317c97bd81
commit
0b90ec9bbf
@ -88,7 +88,7 @@ static int parsenetrc(const char *host,
|
|||||||
if(tok && *tok == '#')
|
if(tok && *tok == '#')
|
||||||
/* treat an initial hash as a comment line */
|
/* treat an initial hash as a comment line */
|
||||||
continue;
|
continue;
|
||||||
while(!done && tok) {
|
while(tok) {
|
||||||
|
|
||||||
if((login && *login) && (password && *password)) {
|
if((login && *login) && (password && *password)) {
|
||||||
done = TRUE;
|
done = TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user