]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor.cc: init scrub_version with 0 in constructor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 24 Jul 2013 16:18:59 +0000 (18:18 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 24 Jul 2013 16:22:00 +0000 (18:22 +0200)
CID 1019623 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
  uninit_member: Non-static class member "scrub_version" 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 9492f7c916874bc9eedf2a51a0e6b39bb2cf4e8c..bd189f1430ce4737fc99f1e9d924e85d1ef56033 100644 (file)
@@ -143,6 +143,7 @@ Monitor::Monitor(CephContext* cct_, string nm, MonitorDBStore *s,
   elector(this),
   leader(0),
   quorum_features(0),
+  scrub_version(0),
 
   // sync state
   sync_provider_count(0),