summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authoraozima <[email protected]>2013-03-01 12:34:01 +0800
committeraozima <[email protected]>2013-03-01 12:34:01 +0800
commit9bb005312f5d6544d060c180180de53baa8b6a62 (patch)
treeca2e554c5b384dcb4b051c0f961b1096821ffaf5 /components
parentf71555ec5520781073cbc531097cf91e3b809b63 (diff)
fixed uninitialized variable.
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 750a1cdc14..4a69b6a64f 100644
--- a/components/dfs/filesystems/elmfat/dfs_elm.c
+++ b/components/dfs/filesystems/elmfat/dfs_elm.c
@@ -182,7 +182,7 @@ int dfs_elm_mkfs(rt_device_t dev_id)
{
#define FSM_STATUS_INIT 0
#define FSM_STATUS_USE_TEMP_DRIVER 1
- FATFS *fat;
+ FATFS *fat = RT_NULL;
int flag;
FRESULT result;
int index;