aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:14:15 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:06:58 +0200
commit97c17e9fcbb4d27eec3cf51db8599ea151c16042 (patch)
treee074be97db7db2177c6764675903d837d4245500 /lib
parent69ea985d4c3ce1901a7b0a69f9e6c899cb762887 (diff)
ftp: part of conditional expression is always true: !result
Fixes warning detected by PVS-Studio Fixes #4374
Diffstat (limited to 'lib')
-rw-r--r--lib/ftp.c2
1 files changed, 1 insertions, 1 deletions
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);
}