Skip to content

Commit

Permalink
initlize struct lfs_diskoff disk = {0}
Browse files Browse the repository at this point in the history
so we don't use it uninitlized in first run
  • Loading branch information
Mohammad Dahamshi authored and geky committed Aug 3, 2023
1 parent 611c9b2 commit 5a834b6
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 5a834b6

Please sign in to comment.