summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@fastmq.commkdir>2009-11-19 08:06:52 +0100
committerMartin Sustrik <sustrik@fastmq.commkdir>2009-11-19 08:06:52 +0100
commitc2e0661b0afb2f50f47e0275fa6603947f26d240 (patch)
tree64f9601e932a726cc163195b4a6cba6d2649d19b
parent26ca5ed8c62f8a88a32106a5c9e003712f4ca655 (diff)
uninitialised variable in devpoll_t and kqueue_t
-rw-r--r--src/devpoll.cpp3
-rw-r--r--src/kqueue.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/devpoll.cpp b/src/devpoll.cpp
index f28d55e..0ee772b 100644
--- a/src/devpoll.cpp
+++ b/src/devpoll.cpp
@@ -37,7 +37,8 @@
#include "config.hpp"
#include "i_poll_events.hpp"
-zmq::devpoll_t::devpoll_t ()
+zmq::devpoll_t::devpoll_t () :
+ stopping (false)
{
// Get limit on open files
struct rlimit rl;
diff --git a/src/kqueue.cpp b/src/kqueue.cpp
index f32fa36..69ad0c8 100644
--- a/src/kqueue.cpp
+++ b/src/kqueue.cpp
@@ -33,7 +33,8 @@
#include "config.hpp"
#include "i_poll_events.hpp"
-zmq::kqueue_t::kqueue_t ()
+zmq::kqueue_t::kqueue_t () :
+ stopping (false)
{
// Create event queue
kqueue_fd = kqueue ();