diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 13:49:46 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-20 13:49:46 +0000 |
commit | 61629d2c86aacd879cac5e5db619251a5eefdbf3 (patch) | |
tree | 248c06d4374841c048c049c18054292c936f35d4 /lib/multi.c | |
parent | cb48c6a3d89ba2283747ed80f8c31a4f4836f868 (diff) | |
download | curl-61629d2c86aacd879cac5e5db619251a5eefdbf3.tar.gz |
made curl_multi_info_read() set 'msgs_in_queue' to 0 even when it returns
NULL!
Diffstat (limited to 'lib/multi.c')
-rw-r--r-- | lib/multi.c | 2 |
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; |