From a6e49860f50943cc1465eeb58d2079ab31a14fee Mon Sep 17 00:00:00 2001 From: Luca Boccassi Date: Sun, 21 Feb 2016 23:43:09 +0000 Subject: [PATCH] Problem: tcp_connecter_t initialization reorder Solution: initialize class variable in the same order as they are defined. --- src/tcp_connecter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tcp_connecter.cpp b/src/tcp_connecter.cpp index 75946222..78093917 100644 --- a/src/tcp_connecter.cpp +++ b/src/tcp_connecter.cpp @@ -67,12 +67,12 @@ zmq::tcp_connecter_t::tcp_connecter_t (class io_thread_t *io_thread_, io_object_t (io_thread_), addr (addr_), s (retired_fd), + handle(NULL), handle_valid (false), delayed_start (delayed_start_), connect_timer_started (false), reconnect_timer_started (false), session (session_), - handle(NULL), current_reconnect_ivl (options.reconnect_ivl) { zmq_assert (addr);