Skip to content

Commit e76af23

Browse files
authored
memset() on LiME header to initialize it
1 parent bf79925 commit e76af23

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dump.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ int dump(const struct options *restrict opts, const struct ram_regions *restrict
8484
int ret = 0;
8585

8686
/* Prepare the LiME header */
87+
memset(&header, '\x00', sizeof(header));
8788
header.magic = 0x4C694D45;
8889
header.version = 1;
8990

0 commit comments

Comments
 (0)