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:
Dan Fandrich 2007-08-30 18:26:19 +00:00
parent da4a776758
commit 5d4c981e13
2 changed files with 8 additions and 6 deletions

View file

@ -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;