]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/Monitor.h: init 'crc' in constructor with '0'
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 13 May 2013 13:37:24 +0000 (15:37 +0200)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Tue, 14 May 2013 16:39:31 +0000 (18:39 +0200)
CID 1019624 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
  uninit_member: Non-static class member "crc" 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.h

index 57da2aba539c614dfd3808980a07e7539df5564a..1443525e9e68ca88e7588175c66a7f44ff12c513 100644 (file)
@@ -548,6 +548,7 @@ private:
        version(0),
        timeout(NULL),
        sync_state(STATE_NONE),
+       crc(0),
        crc_available(false),
        attempts(0)
     { }