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
This commit is contained in:
amitkuma 2017-08-08 23:58:06 +05:30
parent 50d7320f6d
commit 5012db477c

View File

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