From: Danny Al-Gaaf Date: Mon, 10 Mar 2014 20:43:44 +0000 (+0100) Subject: rgw_rados.h: RGWRegion: initialize cct and store with NULL X-Git-Tag: v0.79~150^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e272f74f1565c004e25919547e246a0fc32015ba;p=ceph.git rgw_rados.h: RGWRegion: initialize cct and store with NULL 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 --- diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index c79b93bd256..c48c73a789b 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -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);