mirror of
https://github.com/zeromq/libzmq.git
synced 2025-11-05 04:37:52 +01:00
Problem: Several problems found by Coverity Static Analyzer
Solution: The Coverity Static Code Analyzer was used on libzmq code and found many issues with uninitialized member variables, some redefinition of variables hidding previous instances of same variable name and a couple of functions where return values were not checked, even though all other occurrences were checked (e.g. init_size() return).
This commit is contained in:
@@ -925,12 +925,9 @@ int zmq_poll (zmq_pollitem_t *items_, int nitems_, long timeout_)
|
||||
// file descriptors.
|
||||
zmq_assert (nitems_ <= FD_SETSIZE);
|
||||
|
||||
fd_set pollset_in;
|
||||
FD_ZERO (&pollset_in);
|
||||
fd_set pollset_out;
|
||||
FD_ZERO (&pollset_out);
|
||||
fd_set pollset_err;
|
||||
FD_ZERO (&pollset_err);
|
||||
fd_set pollset_in = { 0 };
|
||||
fd_set pollset_out = { 0 };
|
||||
fd_set pollset_err = { 0 };
|
||||
|
||||
zmq::fd_t maxfd = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user