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
@ -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…
Reference in New Issue
Block a user