Loading lib/multi.c +4 −3 Original line number Diff line number Diff line Loading @@ -900,7 +900,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, int bitmap; unsigned int i; unsigned int nfds = extra_nfds; struct pollfd *ufds; struct pollfd *ufds = NULL; if(!GOOD_MULTI_HANDLE(multi)) return CURLM_BAD_HANDLE; Loading Loading @@ -929,6 +929,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, easy = easy->next; /* check next handle */ } if(nfds) ufds = (struct pollfd *)malloc(nfds * sizeof(struct pollfd)); nfds = 0; Loading Loading @@ -979,7 +980,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, else i = 0; free(ufds); Curl_safefree(ufds); if(ret) *ret = i; return CURLM_OK; Loading Loading
lib/multi.c +4 −3 Original line number Diff line number Diff line Loading @@ -900,7 +900,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, int bitmap; unsigned int i; unsigned int nfds = extra_nfds; struct pollfd *ufds; struct pollfd *ufds = NULL; if(!GOOD_MULTI_HANDLE(multi)) return CURLM_BAD_HANDLE; Loading Loading @@ -929,6 +929,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, easy = easy->next; /* check next handle */ } if(nfds) ufds = (struct pollfd *)malloc(nfds * sizeof(struct pollfd)); nfds = 0; Loading Loading @@ -979,7 +980,7 @@ CURLMcode curl_multi_wait(CURLM *multi_handle, else i = 0; free(ufds); Curl_safefree(ufds); if(ret) *ret = i; return CURLM_OK; Loading