From c5828f9cd36e1380df2ed30ec2e2a180ca694ca7 Mon Sep 17 00:00:00 2001 From: amitkuma Date: Fri, 4 Aug 2017 19:35:10 +0530 Subject: [PATCH] messages: Intilizating uninitized members MMDSTableRequest Fixes coverity Issue: ** 717293 Uninitialized scalar field 2. uninit_member: Non-static class member table is not initialized in this constructor nor in any functions that it calls. 4. uninit_member: Non-static class member op is not initialized in this constructor nor in any functions that it calls. CID 717293 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 6. uninit_member: Non-static class member reqid is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com --- src/messages/MMDSTableRequest.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/messages/MMDSTableRequest.h b/src/messages/MMDSTableRequest.h index 65489cd7dc92..b42a4ad64920 100644 --- a/src/messages/MMDSTableRequest.h +++ b/src/messages/MMDSTableRequest.h @@ -21,9 +21,9 @@ class MMDSTableRequest : public Message { public: - __u16 table; - __s16 op; - uint64_t reqid; + __u16 table = 0; + __s16 op = 0; + uint64_t reqid = 0; bufferlist bl; MMDSTableRequest() : Message(MSG_MDS_TABLE_REQUEST) {} -- 2.47.3