Skip to content

Commit 5853cb7

Browse files
authored
Merge pull request ceph#60209 from myoungwon/wip-init-onode-layout
crimson/os/seastore: initialize oi and ss in onode_layout_t to zero Reviewed-by: Yingxin Cheng <[email protected]>
2 parents 9aab8e7 + 0863262 commit 5853cb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/crimson/os/seastore/onode.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ struct onode_layout_t {
3636

3737
object_data_le_t object_data;
3838

39-
char oi[MAX_OI_LENGTH];
40-
char ss[MAX_SS_LENGTH];
39+
char oi[MAX_OI_LENGTH] = {0};
40+
char ss[MAX_SS_LENGTH] = {0};
4141
} __attribute__((packed));
4242

4343
class Transaction;

0 commit comments

Comments
 (0)