diff --git a/lfs.c b/lfs.c index f6b96552..e957decd 100644 --- a/lfs.c +++ b/lfs.c @@ -1705,7 +1705,7 @@ static int lfs_dir_commitcrc(lfs_t *lfs, struct lfs_commit *commit) { // the caching layer if (noff >= end || noff >= lfs->pcache.off + lfs->cfg->cache_size) { // flush buffers - int err = lfs_bd_sync(lfs, &lfs->pcache, &lfs->rcache, false); + err = lfs_bd_sync(lfs, &lfs->pcache, &lfs->rcache, false); if (err) { return err; }