gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 45/222: netrc: part of conditional expression is always true: !d


From: gnunet
Subject: [gnurl] 45/222: netrc: part of conditional expression is always true: !done
Date: Thu, 07 Nov 2019 00:09:01 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 0b90ec9bbf6ce6d70ae837e5f05d2d449b261417
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 09:34:30 2019 +0200

    netrc: part of conditional expression is always true: !done
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 lib/netrc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]