Skip to content

Commit fb9268a

Browse files
committed
messages/MMDSOpenInoReply.h: init 'error' in ctor
Fix for: CID 1026812 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) uninit_member: Non-static class member error is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
1 parent 08506f3 commit fb9268a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/messages/MMDSOpenInoReply.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ struct MMDSOpenInoReply : public Message {
2323
mds_rank_t hint;
2424
int32_t error;
2525

26-
MMDSOpenInoReply() : Message(MSG_MDS_OPENINOREPLY) {}
26+
MMDSOpenInoReply() : Message(MSG_MDS_OPENINOREPLY), error(0) {}
2727
MMDSOpenInoReply(ceph_tid_t t, inodeno_t i, mds_rank_t h=MDS_RANK_NONE, int e=0) :
2828
Message(MSG_MDS_OPENINOREPLY), ino(i), hint(h), error(e) {
2929
header.tid = t;

0 commit comments

Comments
 (0)