From 4213b869f64fb27be0773819a626a7629af58e79 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Wed, 17 Feb 2016 16:09:11 +0100 Subject: [PATCH] msg/xio/XioConnection.h: init some member variables in ctor Signed-off-by: Danny Al-Gaaf --- src/msg/xio/XioConnection.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/msg/xio/XioConnection.h b/src/msg/xio/XioConnection.h index 845d4ab09007..383f57f23f65 100644 --- a/src/msg/xio/XioConnection.h +++ b/src/msg/xio/XioConnection.h @@ -96,7 +96,9 @@ private: uint32_t in_seq, out_seq_acked; // atomic, got receipt atomic_t out_seq; // atomic - lifecycle() : state(lifecycle::INIT), in_seq(0), out_seq(0) {} + lifecycle() : state(lifecycle::INIT), reconnects(0), connect_seq(0), + peer_global_seq(0), in_seq(0), out_seq_acked(0), + out_seq(0) {} void set_in_seq(uint32_t seq) { in_seq = seq; @@ -143,11 +145,18 @@ private: uint32_t flags; explicit CState(XioConnection* _xcon) - : xcon(_xcon), + : features(0), + authorizer(NULL), + xcon(_xcon), protocol_version(0), session_state(INIT), startup_state(IDLE), + reconnects(0), + connect_seq(0), + global_seq(0), + peer_global_seq(0), in_seq(0), + out_seq_acked(0), out_seq(0), flags(FLAG_NONE) {} -- 2.47.3