mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 14:08:07 -05:00
easy: part of conditional expression is always true: !result
Fixes warning detected by PVS-Studio Fixes #4374
This commit is contained in:
parent
0b90ec9bbf
commit
2e68e5a023
@ -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
|
/* if there's no error and we're not pausing both directions, we want
|
||||||
to have this handle checked soon */
|
to have this handle checked soon */
|
||||||
if(!result &&
|
if((newstate & (KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
|
||||||
((newstate&(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) !=
|
(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) {
|
||||||
(KEEP_RECV_PAUSE|KEEP_SEND_PAUSE)) ) {
|
|
||||||
Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */
|
Curl_expire(data, 0, EXPIRE_RUN_NOW); /* get this handle going again */
|
||||||
if(data->multi)
|
if(data->multi)
|
||||||
Curl_update_timer(data->multi);
|
Curl_update_timer(data->multi);
|
||||||
|
Loading…
Reference in New Issue
Block a user