mirror of
https://github.com/zeromq/libzmq.git
synced 2025-10-15 23:20:09 +02: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:
@@ -34,12 +34,20 @@
|
||||
zmq::socket_poller_t::socket_poller_t () :
|
||||
tag (0xCAFEBABE),
|
||||
need_rebuild (true),
|
||||
poll_size(0),
|
||||
maxfd(0),
|
||||
use_signaler (false)
|
||||
#if defined ZMQ_POLL_BASED_ON_POLL
|
||||
,
|
||||
pollfds (NULL)
|
||||
#endif
|
||||
{
|
||||
#if defined ZMQ_POLL_BASED_ON_SELECT
|
||||
memset(&pollset_in, 0, sizeof(pollset_in));
|
||||
memset(&pollset_out, 0, sizeof(pollset_in));
|
||||
memset(&pollset_err, 0, sizeof(pollset_in));
|
||||
maxfd = 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
zmq::socket_poller_t::~socket_poller_t ()
|
||||
|
Reference in New Issue
Block a user