gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 38/222: ftp: part of conditional expression is always true: !res


From: gnunet
Subject: [gnurl] 38/222: ftp: part of conditional expression is always true: !result
Date: Thu, 07 Nov 2019 00:08:54 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 97c17e9fcbb4d27eec3cf51db8599ea151c16042
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 09:14:15 2019 +0200

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

diff --git a/lib/ftp.c b/lib/ftp.c
index 068a1a024..59ca13ef1 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -523,7 +523,7 @@ static CURLcode AllowServerConnect(struct connectdata 
*conn, bool *connected)
   }
   else {
     /* Add timeout to multi handle and break out of the loop */
-    if(!result && *connected == FALSE) {
+    if(*connected == FALSE) {
       Curl_expire(data, data->set.accepttimeout > 0 ?
                   data->set.accepttimeout: DEFAULT_ACCEPT_TIMEOUT, 0);
     }

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



reply via email to

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