From 97c17e9fcbb4d27eec3cf51db8599ea151c16042 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 19 Sep 2019 09:14:15 +0200 Subject: 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); } -- cgit v1.2.1