From: Danny Al-Gaaf Date: Fri, 12 Jun 2015 10:38:27 +0000 (+0200) Subject: messages/MOSDRepOp.h: init some vars of MOSDRepOp in ctor X-Git-Tag: v9.1.0~446^2~17 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fd82535ae28b52d75780973df952867aafaab10f;p=ceph.git messages/MOSDRepOp.h: init some vars of MOSDRepOp in ctor Fix for: CID 1262114 (#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 acks_wanted is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/messages/MOSDRepOp.h b/src/messages/MOSDRepOp.h index 25cd09d970a..a4b088399cf 100644 --- a/src/messages/MOSDRepOp.h +++ b/src/messages/MOSDRepOp.h @@ -104,7 +104,8 @@ public: } MOSDRepOp() - : Message(MSG_OSD_REPOP, HEAD_VERSION, COMPAT_VERSION) { } + : Message(MSG_OSD_REPOP, HEAD_VERSION, COMPAT_VERSION), + map_epoch(0), acks_wanted (0) {} MOSDRepOp(osd_reqid_t r, pg_shard_t from, spg_t p, const hobject_t& po, int aw, epoch_t mape, ceph_tid_t rtid, eversion_t v)