]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_rados.h: RGWRegion: initialize cct and store with NULL 1414/head
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 10 Mar 2014 20:43:44 +0000 (21:43 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Mon, 10 Mar 2014 20:43:44 +0000 (21:43 +0100)
CID 1054869 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 4. uninit_member: Non-static class member "store" is not initialized
    in this constructor nor in any functions that it calls
 2. uninit_member: Non-static class member "cct" 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/rgw/rgw_rados.h

index c79b93bd256caa05b10cf41ede4dc90860923254..c48c73a789bd1731ea3a9c8f740aa418eb929b4d 100644 (file)
@@ -918,7 +918,7 @@ struct RGWRegion {
   CephContext *cct;
   RGWRados *store;
 
-  RGWRegion() : is_master(false) {}
+  RGWRegion() : is_master(false), cct(NULL), store(NULL) {}
 
   void encode(bufferlist& bl) const {
     ENCODE_START(1, 1, bl);