From d9c076d9093830ac3cc3ced77f7eea0b7b644c0d Mon Sep 17 00:00:00 2001 From: Christopher Haster Date: Mon, 19 Mar 2018 00:39:40 -0500 Subject: [PATCH] Removed the uninitialized read for invalid superblocks --- lfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs.c b/lfs.c index 79112e66077..4b41e9444d7 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; }