]> granicus.if.org Git - curl/commitdiff
easy: part of conditional expression is always true: !result
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 07:37:06 +0000 (09:37 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:07:20 +0000 (08:07 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

lib/easy.c

index 0b0016be47a6b7ef95e04c3322ff444e1a79e2ed..cbb65a5f61560cb75ab6b5a75c5509ca2cd44a5f 100644 (file)
@@ -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);