Skip to content

Commit

Permalink
Merge pull request #855 from mdahamshi/mmd_fix
Browse files Browse the repository at this point in the history
initlize struct lfs_diskoff disk = {0}
  • Loading branch information
geky authored Sep 3, 2023
2 parents e40d8f5 + 5a834b6 commit 531d5e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 531d5e5

Please sign in to comment.