From c21dd8d6a23c4dfd0d42ccda8f3d257ecd29c442 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 21 Feb 2016 23:41:02 +0000 Subject: [PATCH] Problem: socket_base_t initialization reorder Solution: initialize class variable in the same order as they are defined. --- src/socket_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/socket_base.cpp b/src/socket_base.cpp index d4b80bd1..a3a9571a 100644 --- a/src/socket_base.cpp +++ b/src/socket_base.cpp @@ -184,6 +184,8 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool tag (0xbaddecaf), ctx_terminated (false), destroyed (false), + poller(nullptr), + handle(NULL), last_tsc (0), ticks (0), rcvmore (false), @@ -191,8 +193,6 @@ zmq::socket_base_t::socket_base_t (ctx_t *parent_, uint32_t tid_, int sid_, bool monitor_socket (NULL), monitor_events (0), thread_safe (thread_safe_), - poller(nullptr), - handle(NULL), reaper_signaler (NULL) { options.socket_id = sid_;