From 5012db477c0236a3307ea512531ab997e7936aea Mon Sep 17 00:00:00 2001 From: amitkuma Date: Tue, 8 Aug 2017 23:58:06 +0530 Subject: [PATCH] messages: Initialization of is_primary Fixes the coverity issue: ** 717269 Uninitialized scalar field CID 717269 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member is_primary is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com --- src/messages/MDentryLink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/MDentryLink.h b/src/messages/MDentryLink.h index 1c6397acd40..eb079da2496 100644 --- a/src/messages/MDentryLink.h +++ b/src/messages/MDentryLink.h @@ -20,7 +20,7 @@ class MDentryLink : public Message { dirfrag_t subtree; dirfrag_t dirfrag; string dn; - bool is_primary; + bool is_primary = false; public: dirfrag_t get_subtree() { return subtree; }