gnunet-svn
[Top][All Lists]
Advanced

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

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


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

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 9aed993da0e33e9aea27bfcd2ebcb9e7181d99c0
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Sep 23 10:55:43 2019 +0200

    libssh: part of conditional expression is always true: !result
    
    PVS-Studio warning
    Fixed #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 34ae792c3..cad8b3786 100644
--- a/lib/vssh/libssh.c
+++ b/lib/vssh/libssh.c
@@ -1999,7 +1999,7 @@ static CURLcode myssh_block_statemach(struct connectdata 
*conn,
       }
     }
 
-    if(!result && block) {
+    if(block) {
       curl_socket_t fd_read = conn->sock[FIRSTSOCKET];
       /* wait for the socket to become ready */
       (void) Curl_socket_check(fd_read, CURL_SOCKET_BAD,

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



reply via email to

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