summaryrefslogtreecommitdiff
path: root/lib/vssh
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-23 10:55:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-23 22:44:01 +0200
commitb7e872ac1731cb8aee482cbb8af7c59fe53b71f2 (patch)
treebbb338037455455139f6799fca97a568bab82c6f /lib/vssh
parent9221896768d4c6961a5c48cf863a1e46fe481c41 (diff)
downloadcurl-b7e872ac1731cb8aee482cbb8af7c59fe53b71f2.tar.gz
libssh: part of conditional expression is always true
PVS-Studio warning Fixes #4402
Diffstat (limited to 'lib/vssh')
-rw-r--r--lib/vssh/libssh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vssh/libssh.c b/lib/vssh/libssh.c
index e4d02339a..34ae792c3 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -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;
}