From 47a560b1733da037c3707362db32253d1d533162 Mon Sep 17 00:00:00 2001 From: wuyangyong Date: Fri, 25 Nov 2011 07:29:11 +0000 Subject: [PATCH] fixed result uninitialized issue. git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1805 bbd45198-f89e-11dd-88c7-29a3b14d5316 --- components/dfs/filesystems/elmfat/dfs_elm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;