Merge pull request #855 from mdahamshi/mmd_fix

initlize struct lfs_diskoff disk = {0}
This commit is contained in:
Christopher Haster
2023-09-03 12:46:28 -05:00
committed by GitHub

2
lfs.c
View File

@@ -877,7 +877,7 @@ static int lfs_dir_traverse(lfs_t *lfs,
// iterate over directory and attrs
lfs_tag_t tag;
const void *buffer;
struct lfs_diskoff disk;
struct lfs_diskoff disk = {0};
while (true) {
{
if (off+lfs_tag_dsize(ptag) < dir->off) {