1
0
mirror of https://github.com/moparisthebest/curl synced 2024-08-13 17:03:50 -04:00

libssh: part of conditional expression is always true

PVS-Studio warning
Fixes #4402
This commit is contained in:
Daniel Stenberg 2019-09-23 10:55:05 +02:00
parent 9221896768
commit b7e872ac17
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1356,7 +1356,7 @@ static CURLcode myssh_statemach_act(struct connectdata *conn, bool *block)
break;
}
}
else if(sshc->readdir_attrs == NULL && sftp_dir_eof(sshc->sftp_dir)) {
else if(sftp_dir_eof(sshc->sftp_dir)) {
state(conn, SSH_SFTP_READDIR_DONE);
break;
}