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
commit 531d5e5073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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) {