]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor.cc: init 'timecheck_acks' with '0' in constructor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 13 May 2013 14:02:04 +0000 (16:02 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 14 May 2013 16:39:31 +0000 (18:39 +0200)
CID 1019623 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
  uninit_member: Non-static class member "timecheck_acks" is not
  initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/mon/Monitor.cc

index 284f50685c36dbe19da6d7ebf61f9b6aa27db8e6..7325bfade6ba621b3b9f1a59bee256518fb18bed 100644 (file)
@@ -150,6 +150,7 @@ Monitor::Monitor(CephContext* cct_, string nm, MonitorDBStore *s,
   sync_provider(),
 
   timecheck_round(0),
+  timecheck_acks(0),
   timecheck_event(NULL),
 
   probe_timeout_event(NULL),