From 645c2be487132bde7df1b5bd3bef8eb7cef9aa2e Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 21 Feb 2016 23:42:12 +0000 Subject: [PATCH] Problem: stream_engine_t initialization reorder Solution: initialize class variable in the same order as they are defined. --- src/stream_engine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stream_engine.cpp b/src/stream_engine.cpp index edcb1e8c..f2de8f5f 100644 --- a/src/stream_engine.cpp +++ b/src/stream_engine.cpp @@ -61,6 +61,8 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, const std::string &endpoint_) : s (fd_), + as_server(false), + handle(NULL), inpos (NULL), insize (0), decoder (NULL), @@ -87,8 +89,6 @@ zmq::stream_engine_t::stream_engine_t (fd_t fd_, const options_t &options_, has_timeout_timer (false), has_heartbeat_timer (false), heartbeat_timeout (0), - as_server(false), - handle(NULL), socket (NULL) { int rc = tx_msg.init ();