From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 12:25:45 +0000 (+0100) Subject: src/rgw/rgw_rados.h: init some RGWPeriod member vars in ctor X-Git-Tag: v11.1.0~327^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ef67a80820d5d592104f01b01ed4abff06e52ecf;p=ceph.git src/rgw/rgw_rados.h: init some RGWPeriod member vars in ctor Fix for: CID 1353422 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member cct is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member store is not initialized in this constructor nor in any functions that it calls. CID 1353426 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member cct is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member store 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 8ca54b89d88d..6d7525fb0ab8 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1559,10 +1559,11 @@ class RGWPeriod int update_sync_status(); public: - RGWPeriod() : epoch(0) {} + RGWPeriod() : epoch(0), cct(NULL), store(NULL) {} RGWPeriod(const string& period_id, epoch_t _epoch = 0) - : id(period_id), epoch(_epoch) {} + : id(period_id), epoch(_epoch), + cct(NULL), store(NULL) {} const string& get_id() const { return id; } epoch_t get_epoch() const { return epoch; }