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