summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:19:44 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:06 +0200
commite3c41ebd7c6f31f0a30362cfda735cdebb400ced (patch)
tree2b1c2997566a57a02cef420fb3cbb12657ae3850 /lib/ftp.c
parent49f3117a238b6eac0e22a32f50699a9eddcb66ab (diff)
downloadcurl-e3c41ebd7c6f31f0a30362cfda735cdebb400ced.tar.gz
ftp: the conditional expression is always true
... both !result and (ftp->transfer != FTPTRANSFER_BODY)! Fixes warning detected by PVS-Studio Fixes #4374
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 4cd9a1acf..d057a0a61 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -3611,10 +3611,8 @@ static CURLcode ftp_do_more(struct connectdata *conn, int *completep)
return result;
}
- if(!result && (ftp->transfer != FTPTRANSFER_BODY))
- /* no data to transfer. FIX: it feels like a kludge to have this here
- too! */
- Curl_setup_transfer(data, -1, -1, FALSE, -1);
+ /* no data to transfer */
+ Curl_setup_transfer(data, -1, -1, FALSE, -1);
if(!ftpc->wait_data_conn) {
/* no waiting for the data connection so this is now complete */