From 9aed993da0e33e9aea27bfcd2ebcb9e7181d99c0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 23 Sep 2019 10:55:43 +0200 Subject: 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, -- cgit v1.2.3