From bc4254ebf29fa3e0b6ec28c5e32808b4288a8209 Mon Sep 17 00:00:00 2001 From: amitkuma Date: Tue, 12 Sep 2017 00:09:00 +0530 Subject: [PATCH] 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 --- src/messages/MHeartbeat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.47.3