mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-29 00:32:34 +08:00
Merge pull request #2562 from pijyoi/fix_init_fdset
Problem: not using official api FD_ZERO to init fd_set
This commit is contained in:
commit
fb92cd30a1
@ -1048,9 +1048,12 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
|
||||
// file descriptors.
|
||||
zmq_assert (nitems_ <= FD_SETSIZE);
|
||||
|
||||
fd_set pollset_in = { 0 };
|
||||
fd_set pollset_out = { 0 };
|
||||
fd_set pollset_err = { 0 };
|
||||
fd_set pollset_in;
|
||||
FD_ZERO (&pollset_in);
|
||||
fd_set pollset_out;
|
||||
FD_ZERO (&pollset_out);
|
||||
fd_set pollset_err;
|
||||
FD_ZERO (&pollset_err);
|
||||
|
||||
zmq::fd_t maxfd = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user