diff options
| author | [email protected] <[email protected]> | 2012-08-21 10:06:59 +0000 |
|---|---|---|
| committer | [email protected] <[email protected]> | 2012-08-21 10:06:59 +0000 |
| commit | 3ea99e46f3d5abed30d5f8b81be74a9eb557ffa4 (patch) | |
| tree | 6f0dd973a9c48b3908955633c2e957504917b729 | |
| parent | 526de394b06ec9f001ee44ad511e7df777bd23bf (diff) | |
fix bug in dfs_elm.c the fat->drv to index, because fat->drv is uninitialized in f_mount.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@2256 bbd45198-f89e-11dd-88c7-29a3b14d5316
| -rw-r--r-- | components/dfs/filesystems/elmfat/dfs_elm.c | 2 |
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 ee3d29962f..a8c724d8ad 100644 --- a/components/dfs/filesystems/elmfat/dfs_elm.c +++ b/components/dfs/filesystems/elmfat/dfs_elm.c @@ -107,7 +107,7 @@ int dfs_elm_mount(struct dfs_filesystem *fs, unsigned long rwflag, const void *d char drive[8]; DIR * dir; - rt_snprintf(drive, sizeof(drive), "%d:/", fat->drv); + rt_snprintf(drive, sizeof(drive), "%d:/", index); dir = (DIR *)rt_malloc(sizeof(DIR)); if (dir == RT_NULL) return -DFS_STATUS_ENOMEM; |
