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
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2019-07-29 05:35:22 +0300
committerGitHub <noreply@github.com>2019-07-29 05:35:22 +0300
commit582b596ed1818aab60a65dd931815fa8e688796c (patch)
tree02d05430f537bbbd4745d642f332312d2e187850 /emubd/lfs_emubd.c
parent0d4c0b105cabc7dd76a9aaa3f82f655a7b35aa79 (diff)
parent19838371fb6e24ddbcec196b2269472f5eafef7f (diff)
Merge pull request #242 from ARMmbed/fix-2048-erase-size
Fix issues with large prog sizes (prog_size > 1KiB)
Diffstat (limited to 'emubd/lfs_emubd.c')
-rw-r--r--emubd/lfs_emubd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/emubd/lfs_emubd.c b/emubd/lfs_emubd.c
index 8c2c30b..f0f0971 100644
--- a/emubd/lfs_emubd.c
+++ b/emubd/lfs_emubd.c
@@ -82,7 +82,7 @@ int lfs_emubd_create(const struct lfs_config *cfg, const char *path) {
snprintf(emu->child, LFS_NAME_MAX, ".stats");
FILE *f = fopen(emu->path, "r");
if (!f) {
- memset(&emu->stats, 0, sizeof(emu->stats));
+ memset(&emu->stats, LFS_EMUBD_ERASE_VALUE, sizeof(emu->stats));
} else {
size_t res = fread(&emu->stats, sizeof(emu->stats), 1, f);
lfs_emubd_fromle32(emu);