summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorwuyangyong <[email protected]>2011-11-25 07:29:11 +0000
committerwuyangyong <[email protected]>2011-11-25 07:29:11 +0000
commit47a560b1733da037c3707362db32253d1d533162 (patch)
treec9f9becbeee00b96d509281ac951897ae0ddb524 /components
parentfbd0b064c475f92e81e2d9b340acacffb54c12cd (diff)
fixed result uninitialized issue.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1805 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components')
-rw-r--r--components/dfs/filesystems/elmfat/dfs_elm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/dfs/filesystems/elmfat/dfs_elm.c b/components/dfs/filesystems/elmfat/dfs_elm.c
index 455f6b2f3d..f85411f108 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;