Ver código fonte

fixed result uninitialized issue.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1805 bbd45198-f89e-11dd-88c7-29a3b14d5316
wuyangyong 13 anos atrás
pai
commit
47a560b173
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      components/dfs/filesystems/elmfat/dfs_elm.c

+ 1 - 1
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)
 int dfs_elm_lseek(struct dfs_fd* file, rt_off_t offset)
 {
 {
-	FRESULT result;
+	FRESULT result = FR_OK;
 	if (file->type == FT_REGULAR)
 	if (file->type == FT_REGULAR)
 	{
 	{
 		FIL* fd;
 		FIL* fd;