Explorar el Código

Merge pull request #855 from mdahamshi/mmd_fix

initlize struct lfs_diskoff disk = {0}
Christopher Haster hace 2 años
padre
commit
531d5e5073
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lfs.c

+ 1 - 1
lfs.c

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