From: Danny Al-Gaaf Date: Thu, 13 Mar 2014 17:39:32 +0000 (+0100) Subject: mds/Migrator.h: init some members of import_state_t in ctor X-Git-Tag: v0.79~149^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd383a95f0be9fbebdc4c681b71f79c6c30abf0c;p=ceph.git mds/Migrator.h: init some members of import_state_t in ctor CID 1188166 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member "state" is not initialized in this constructor nor in any functions that it calls. 4. uninit_member: Non-static class member "peer" is not initialized in this constructor nor in any functions that it calls. 6. uninit_member: Non-static class member "tid" is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/mds/Migrator.h b/src/mds/Migrator.h index 928d197bf88e..d3a21292a003 100644 --- a/src/mds/Migrator.h +++ b/src/mds/Migrator.h @@ -141,7 +141,7 @@ protected: map client_map; map > peer_exports; Mutation *mut; - import_state_t() : mut(NULL) {} + import_state_t() : state(0), peer(0), tid(0), mut(NULL) {} }; map import_state;