aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:34:30 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:18 +0200
commit0b90ec9bbf6ce6d70ae837e5f05d2d449b261417 (patch)
tree8cef74e37a513eb59fdf87b6562c34755fe79d80 /lib
parent317c97bd81d413d47bf377c4ff3a83f003dcadbd (diff)
netrc: part of conditional expression is always true: !done
Fixes warning detected by PVS-Studio Fixes #4374
Diffstat (limited to 'lib')
-rw-r--r--lib/netrc.c2
1 files changed, 1 insertions, 1 deletions
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;