]> granicus.if.org Git - curl/commitdiff
libssh: part of conditional expression is always true
authorDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 08:55:05 +0000 (10:55 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 23 Sep 2019 20:44:01 +0000 (22:44 +0200)
PVS-Studio warning
Fixes #4402

lib/vssh/libssh.c

index e4d02339a24901d2dbc69dc5721561a655e93e4e..34ae792c3aae7a58c1d04c024670aa961a6d3c60 100644 (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;
       }