diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c index 455f6b2f3..f85411f10 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -405,7 +405,7 @@ int dfs_elm_flush(struct dfs_fd* file) int dfs_elm_lseek(struct dfs_fd* file, rt_off_t offset) { - FRESULT result; + FRESULT result = FR_OK; if (file->type == FT_REGULAR) { FIL* fd;