aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2019-09-19 09:37:06 +0200
committerDaniel Stenberg <daniel@haxx.se>2019-09-20 08:07:20 +0200
commit2e68e5a023c0723521b1867814ce48e688cb9200 (patch)
tree6d5994bfd4360182f7620edd26a8ed98494c0925
parent0b90ec9bbf6ce6d70ae837e5f05d2d449b261417 (diff)
easy: part of conditional expression is always true: !result
Fixes warning detected by PVS-Studio Fixes #4374
-rw-r--r--lib/easy.c5
1 files 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);