gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 82/222: libssh: part of conditional expression is always true


From: gnunet
Subject: [gnurl] 82/222: libssh: part of conditional expression is always true
Date: Thu, 07 Nov 2019 00:09:38 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit b7e872ac1731cb8aee482cbb8af7c59fe53b71f2
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 23 10:55:05 2019 +0200

    libssh: part of conditional expression is always true
    
    PVS-Studio warning
    Fixes #4402
---
 lib/vssh/libssh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
       }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]