From: amitkuma Date: Mon, 11 Sep 2017 18:39:00 +0000 (+0530) Subject: messages: Initialization of variable beat X-Git-Tag: v13.0.1~931^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F17641%2Fhead;p=ceph.git messages: Initialization of variable beat Fixes the coverity issue: ** 717278 Uninitialized scalar field CID 717278 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member beat is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Amit Kumar --- diff --git a/src/messages/MHeartbeat.h b/src/messages/MHeartbeat.h index 6cf4a0e37e1c..ad0d8f8e4818 100644 --- a/src/messages/MHeartbeat.h +++ b/src/messages/MHeartbeat.h @@ -21,7 +21,7 @@ class MHeartbeat : public Message { mds_load_t load; - __s32 beat; + __s32 beat = 0; map import_map; public: