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>
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;