浏览代码

fixed uninitialized variable.

aozima 12 年之前
父节点
当前提交
9bb005312f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/dfs/filesystems/elmfat/dfs_elm.c

+ 1 - 1
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;