aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-09-25 00:16:23 +0000
committerYang Tse <yangsita@gmail.com>2006-09-25 00:16:23 +0000
commitb2ca777a08c9a23a9d9b90fc8106f3305744fec2 (patch)
treebe5ca70cd4906bfb299234ab428a052fe09bb81d
parentba01198e6c687337fc601f1ec7489d75e91c80ca (diff)
Compiler warning fix
-rw-r--r--lib/multi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 0a19c129e..244994cfe 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -430,9 +430,9 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
by default. */
CURLcode res = Curl_ch_connc(easy_handle, multi->connc,
multi->connc->num*4);
- if(res)
+ if(res != CURLE_OK)
/* TODO: we need to do some cleaning up here! */
- return res;
+ return CURLM_OUT_OF_MEMORY;
}
/* increase the alive-counter */