]> granicus.if.org Git - curl/commitdiff
netrc: part of conditional expression is always true: !done
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 07:34:30 +0000 (09:34 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:07:18 +0000 (08:07 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

lib/netrc.c

index c74065e81317e5c1cbd6adc61922299017f1d18f..1c9da31993c9f746dc303ab60811a1dd03439aed 100644 (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;