Skip to content

Commit 11cecd0

Browse files
authored
fix: also assert inside lfs_bd_read
1 parent 8c7b6b2 commit 11cecd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ static int lfs_bd_read(lfs_t *lfs,
9393
// bypass cache?
9494
diff = lfs_aligndown(diff, lfs->cfg->read_size);
9595
int err = lfs->cfg->read(lfs->cfg, block, off, data, diff);
96+
LFS_ASSERT(err <= 0);
9697
if (err) {
9798
return err;
9899
}

0 commit comments

Comments
 (0)