Sfoglia il codice sorgente

Removed the uninitialized read for invalid superblocks

Christopher Haster 7 anni fa
parent
commit
d9c076d909
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lfs.c

+ 1 - 1
lfs.c

@@ -2199,7 +2199,7 @@ int lfs_mount(lfs_t *lfs, const struct lfs_config *cfg) {
     }
 
     if (err || memcmp(superblock.d.magic, "littlefs", 8) != 0) {
-        LFS_ERROR("Invalid superblock at %d %d", dir.pair[0], dir.pair[1]);
+        LFS_ERROR("Invalid superblock at %d %d", 0, 1);
         return LFS_ERR_CORRUPT;
     }