gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 46/222: easy: part of conditional expression is always true: !re


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

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 2e68e5a023c0723521b1867814ce48e688cb9200
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 09:37:06 2019 +0200

    easy: part of conditional expression is always true: !result
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 lib/easy.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/easy.c b/lib/easy.c
index 0b0016be4..cbb65a5f6 100644
--- a/lib/easy.c
+++ b/lib/easy.c
@@ -1020,9 +1020,8 @@ CURLcode curl_easy_pause(struct Curl_easy *data, int 
action)
 
   /* if there's no error and we're not pausing both directions, we want
      to have this handle checked soon */
-  if(!result &&
-     ((newstate&(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
-      (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) ) {
+  if((newstate & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
+     (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) {
     Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */
     if(data->multi)
       Curl_update_timer(data->multi);

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



reply via email to

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