mirror of
https://github.com/curl/curl.git
synced 2026-05-30 04:57:33 +03:00
cf-socket: remove two "useless" assignments
'nread' is already -1, no need to assign it again Pointed out by CodeSonar Closes #14145
This commit is contained in:
parent
f43adc2c49
commit
5637ca1aab
1 changed files with 0 additions and 2 deletions
|
|
@ -1571,7 +1571,6 @@ static ssize_t cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
) {
|
||||
/* this is just a case of EWOULDBLOCK */
|
||||
*err = CURLE_AGAIN;
|
||||
nread = -1;
|
||||
}
|
||||
else {
|
||||
char buffer[STRERROR_LEN];
|
||||
|
|
@ -1580,7 +1579,6 @@ static ssize_t cf_socket_recv(struct Curl_cfilter *cf, struct Curl_easy *data,
|
|||
Curl_strerror(sockerr, buffer, sizeof(buffer)));
|
||||
data->state.os_errno = sockerr;
|
||||
*err = CURLE_RECV_ERROR;
|
||||
nread = -1;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue