From f1580a7c2383332cb67d52acb38560d3a1863939 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Thu, 29 Jun 2017 20:45:07 +0530 Subject: rgw: Initialize pointer field in RGWLC Fixes the Coverity Scan Report: CID 1396146 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member max_objs is not initialized in this constructor nor in any functions that it calls. 4. uninit_member: Non-static class member obj_names is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- src/rgw/rgw_lc.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rgw/rgw_lc.h') diff --git a/src/rgw/rgw_lc.h b/src/rgw/rgw_lc.h index 7ff6505a7b5..4c07198ca52 100644 --- a/src/rgw/rgw_lc.h +++ b/src/rgw/rgw_lc.h @@ -242,8 +242,8 @@ WRITE_CLASS_ENCODER(RGWLifecycleConfiguration) class RGWLC { CephContext *cct; RGWRados *store; - int max_objs; - string *obj_names; + int max_objs{0}; + string *obj_names{nullptr}; std::atomic down_flag = { false }; string cookie; -- cgit v1.2.3