mirror of
https://github.com/curl/curl.git
synced 2026-08-13 17:40:57 +03:00
Fixed a few compiler warnings. Try to do a slightly better job of
cleaning up after an OOM condition in curl_multi_add_handle
This commit is contained in:
parent
da4a776758
commit
5d4c981e13
2 changed files with 8 additions and 6 deletions
|
|
@ -320,8 +320,8 @@ static int juggle(curl_socket_t *sockfdp,
|
|||
nread_stdin = 0;
|
||||
do {
|
||||
/* get data in the buffer at the correct position */
|
||||
ssize_t rc = read(fileno(stdin), &buffer[nread_stdin],
|
||||
buffer_len - nread_stdin);
|
||||
rc = read(fileno(stdin), &buffer[nread_stdin],
|
||||
buffer_len - nread_stdin);
|
||||
logmsg("read %d bytes", rc);
|
||||
if(rc <= 0)
|
||||
return FALSE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue