From 6ded3f9e9dec59686459874b5f80c0fa6ec9c65b Mon Sep 17 00:00:00 2001 From: amitkuma Date: Mon, 21 Aug 2017 23:14:24 +0530 Subject: [PATCH] osd: Initialization of cls Fixes the coverity issue: ** 1322812 Uninitialized pointer field CID 1322812 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) 2. uninit_member: Non-static class member cls is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com --- src/osd/ClassHandler.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osd/ClassHandler.h b/src/osd/ClassHandler.h index 0e1991afbecbb..12de083e3d2e5 100644 --- a/src/osd/ClassHandler.h +++ b/src/osd/ClassHandler.h @@ -36,7 +36,7 @@ public: }; struct ClassFilter { - struct ClassHandler::ClassData *cls; + struct ClassHandler::ClassData *cls = nullptr; std::string name; cls_cxx_filter_factory_t fn; -- 2.39.5