diff options
author | Jos Collin <jcollin@redhat.com> | 2017-06-29 17:15:07 +0200 |
---|---|---|
committer | Jos Collin <jcollin@redhat.com> | 2017-07-12 18:03:04 +0200 |
commit | f1580a7c2383332cb67d52acb38560d3a1863939 (patch) | |
tree | 1532dbc8a57f3aa8c57a8b5f14e399d44796a439 /src/rgw/rgw_lc.h | |
parent | rgw: Initialize pointer field in seed (diff) | |
download | ceph-f1580a7c2383332cb67d52acb38560d3a1863939.tar.xz ceph-f1580a7c2383332cb67d52acb38560d3a1863939.zip |
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 <jcollin@redhat.com>
Diffstat (limited to 'src/rgw/rgw_lc.h')
-rw-r--r-- | src/rgw/rgw_lc.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<bool> down_flag = { false }; string cookie; |