mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 17:18:48 -05:00
ftp: Expression 'ftpc->wait_data_conn' is always false
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
a50c3d7fa0
commit
49f3117a23
@ -3570,13 +3570,8 @@ static CURLcode ftp_do_more(struct connectdata *conn, int *completep)
|
||||
return result;
|
||||
|
||||
result = ftp_multi_statemach(conn, &complete);
|
||||
if(ftpc->wait_data_conn)
|
||||
/* if we reach the end of the FTP state machine here, *complete will be
|
||||
TRUE but so is ftpc->wait_data_conn, which says we need to wait for
|
||||
the data connection and therefore we're not actually complete */
|
||||
*completep = 0;
|
||||
else
|
||||
*completep = (int)complete;
|
||||
/* ftpc->wait_data_conn is always false here */
|
||||
*completep = (int)complete;
|
||||
}
|
||||
else {
|
||||
/* download */
|
||||
|
Loading…
Reference in New Issue
Block a user