Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lfs.c
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2018-03-19 08:39:40 +0300
committerChristopher Haster <chaster@utexas.edu>2018-03-19 08:39:40 +0300
commitd9c076d9093830ac3cc3ced77f7eea0b7b644c0d (patch)
tree25d37c8e042295aec87bb3973edb334ff9bf4551 /lfs.c
parent58f3bb1f08271909781b2f1d9634c46227a23107 (diff)
Removed the uninitialized read for invalid superblocks
Diffstat (limited to 'lfs.c')
-rw-r--r--lfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lfs.c b/lfs.c
index 79112e6..4b41e94 100644
--- a/lfs.c
+++ b/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;
}