mirror of
https://github.com/curl/curl.git
synced 2026-05-18 00:16:20 +03:00
bufq: simplify condition
'result' is always CURLE_AGAIN here Pointed out by CodeSonar Closes #18305
This commit is contained in:
parent
e440686034
commit
294ebba565
1 changed files with 2 additions and 1 deletions
|
|
@ -537,7 +537,8 @@ CURLcode Curl_bufq_write_pass(struct bufq *q,
|
|||
if(result != CURLE_AGAIN)
|
||||
/* real error, fail */
|
||||
return result;
|
||||
if((result == CURLE_AGAIN) && *pwritten)
|
||||
/* result == CURLE_AGAIN */
|
||||
if(*pwritten)
|
||||
/* we did write successfully before */
|
||||
result = CURLE_OK;
|
||||
return result;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue