aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-08-20 13:49:46 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-08-20 13:49:46 +0000
commit61629d2c86aacd879cac5e5db619251a5eefdbf3 (patch)
tree248c06d4374841c048c049c18054292c936f35d4 /lib
parentcb48c6a3d89ba2283747ed80f8c31a4f4836f868 (diff)
made curl_multi_info_read() set 'msgs_in_queue' to 0 even when it returns
NULL!
Diffstat (limited to 'lib')
-rw-r--r--lib/multi.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 0d2fcf7ff..93891bf04 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -588,6 +588,8 @@ CURLMsg *curl_multi_info_read(CURLM *multi_handle, int *msgs_in_queue)
{
struct Curl_multi *multi=(struct Curl_multi *)multi_handle;
+ *msgs_in_queue = 0; /* default to none */
+
if(GOOD_MULTI_HANDLE(multi)) {
struct Curl_one_easy *easy;