From: Danny Al-Gaaf Date: Fri, 12 Jun 2015 10:39:44 +0000 (+0200) Subject: messages/MOSDRepOpReply.h: init some vars of MOSDRepOpReply in ctor X-Git-Tag: v9.1.0~446^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5b8ae6238ec9696f70fc1f02b5bb0c0da420dffd;p=ceph.git messages/MOSDRepOpReply.h: init some vars of MOSDRepOpReply in ctor Fix for: CID 1262115 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member map_epoch is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member ack_type is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member result is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/messages/MOSDRepOpReply.h b/src/messages/MOSDRepOpReply.h index 957502dddddf..f0faa4c02299 100644 --- a/src/messages/MOSDRepOpReply.h +++ b/src/messages/MOSDRepOpReply.h @@ -94,7 +94,9 @@ public: result(result_) { set_tid(req->get_tid()); } - MOSDRepOpReply() : Message(MSG_OSD_REPOPREPLY) {} + MOSDRepOpReply() + : Message(MSG_OSD_REPOPREPLY), map_epoch(0), + ack_type(0), result(0) {} private: ~MOSDRepOpReply() {}