From 1046f359300f8dd6e80f2d5dbc9190386ef00910 Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 21 Feb 2016 23:46:51 +0000 Subject: [PATCH] Problem: udp_engine_t initialization reorder Solution: initialize class variable in the same order as they are defined. --- src/udp_engine.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/udp_engine.cpp b/src/udp_engine.cpp index 80fb1624..9cff8162 100644 --- a/src/udp_engine.cpp +++ b/src/udp_engine.cpp @@ -49,11 +49,11 @@ along with this program. If not, see . zmq::udp_engine_t::udp_engine_t() : plugged (false), fd(NULL), + session(NULL), + handle(NULL), address(nullptr), send_enabled(false), - recv_enabled(false), - handle(NULL), - session(NULL) + recv_enabled(false) { }