Skip to content

Commit

Permalink
messages: Initialization of variable beat
Browse files Browse the repository at this point in the history
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 <amitkuma@redhat.com>
  • Loading branch information
amitkuma committed Sep 11, 2017
1 parent b196d38 commit bc4254e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/messages/MHeartbeat.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

class MHeartbeat : public Message {
mds_load_t load;
__s32 beat;
__s32 beat = 0;
map<mds_rank_t, float> import_map;

public:
Expand Down

0 comments on commit bc4254e

Please sign in to comment.