From: Harry Sintonen Date: Thu, 13 Feb 2025 18:33:33 +0000 (+0200) Subject: docs: add FD_ZERO to curl_multi_fdset example X-Git-Tag: curl-8_13_0~485 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f138177b92b2db962de959f1311726bd4f67d7cd;p=thirdparty%2Fcurl.git docs: add FD_ZERO to curl_multi_fdset example While the examples are not intended to complete applications this is quite relevant for the correct function of the code. Closes #16325 --- diff --git a/docs/libcurl/curl_multi_fdset.md b/docs/libcurl/curl_multi_fdset.md index d43663dd90..1396738014 100644 --- a/docs/libcurl/curl_multi_fdset.md +++ b/docs/libcurl/curl_multi_fdset.md @@ -100,6 +100,10 @@ int main(void) /* call curl_multi_perform() */ + FD_ZERO(&fdread); + FD_ZERO(&fdwrite); + FD_ZERO(&fdexcep); + /* get file descriptors from the transfers */ mc = curl_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);