mirror of
https://github.com/curl/curl.git
synced 2026-06-19 15:15:39 +03:00
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
This commit is contained in:
parent
92af12a7e0
commit
f138177b92
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue