Fixes the coverity issues:
** 717336 Uninitialized scalar field
CID 717336 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member whitelisted is not initialized
in this constructor nor in any functions that it calls.
** 728001 Uninitialized scalar field
CID 728001 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
2. uninit_member: Non-static class member priority is not initialized
in this constructor nor in any functions that it calls.
Signed-off-by: Amit Kumar <amitkuma@redhat.com>
ClassHandler *handler;
void *handle;
- bool whitelisted;
+ bool whitelisted = false;
map<string, ClassMethod> methods_map;
map<string, ClassFilter> filters_map;
bool must_scrub, must_deep_scrub, must_repair;
// Priority to use for scrub scheduling
- unsigned priority;
+ unsigned priority = 0;
// this flag indicates whether we would like to do auto-repair of the PG or not
bool auto_repair;