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

lib/ftp.c

index 068a1a024b160b4f8219492e8ddb060d2fd074b6..59ca13ef1f773183655f6c9785e21f37914c7251 100644 (file)
--- 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);
     }