Skip to content

Commit

Permalink
Removed the uninitialized read for invalid superblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
geky committed Mar 19, 2018
1 parent 58f3bb1 commit d9c076d
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 @@ -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;
}

Expand Down

0 comments on commit d9c076d

Please sign in to comment.