]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
made curl_multi_info_read() set 'msgs_in_queue' to 0 even when it returns
authorDaniel Stenberg <daniel@haxx.se>
Wed, 20 Aug 2003 13:49:46 +0000 (13:49 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 20 Aug 2003 13:49:46 +0000 (13:49 +0000)
NULL!

lib/multi.c

index 0d2fcf7ff38bdbcab6c9f538052a439f5144ebc9..93891bf0415e90d2470550ce1a87e7608bce9962 100644 (file)
@@ -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;