From ef67a80820d5d592104f01b01ed4abff06e52ecf Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Tue, 23 Feb 2016 13:25:45 +0100 Subject: [PATCH] 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 --- src/rgw/rgw_rados.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 8ca54b89d88d2..6d7525fb0ab83 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; } -- 2.39.5