From cb13c4822cb6b7004f8b9c0fc8a67ceadc5c8afe Mon Sep 17 00:00:00 2001 From: amitkuma Date: Fri, 4 Aug 2017 19:42:52 +0530 Subject: [PATCH] messages: Intilizating uninitized members MMonGetVersion Fixes coverity Issue: ** 717296 Uninitialized scalar field CID 717296 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member handle is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar amitkuma@redhat.com --- src/messages/MMonGetVersion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/messages/MMonGetVersion.h b/src/messages/MMonGetVersion.h index 6c5367e13ee4..ddf58dc6d44e 100644 --- a/src/messages/MMonGetVersion.h +++ b/src/messages/MMonGetVersion.h @@ -48,7 +48,7 @@ public: ::decode(what, p); } - ceph_tid_t handle; + ceph_tid_t handle = 0; string what; private: -- 2.47.3