summaryrefslogtreecommitdiff
path: root/components/dfs/src
diff options
context:
space:
mode:
authorbernard <[email protected]>2013-07-24 07:33:48 +0800
committerbernard <[email protected]>2013-07-24 07:33:48 +0800
commita124e7bd22445ce90fc39419268d1b27e74ffd45 (patch)
tree6e10260ee04b990bf021b93b87aa2f7e04f1bb12 /components/dfs/src
parentb96b35613f2cdc8118f083a3e2795788915319d7 (diff)
add initialization debug code
Diffstat (limited to 'components/dfs/src')
-rw-r--r--components/dfs/src/dfs_fs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c
index 8b77aa978b..0b2dea8866 100644
--- a/components/dfs/src/dfs_fs.c
+++ b/components/dfs/src/dfs_fs.c
@@ -500,12 +500,12 @@ int dfs_statfs(const char *path, struct statfs *buffer)
#ifdef RT_USING_DFS_MNTTABLE
int dfs_mount_table(void)
{
- int index;
+ int index = 0;
while (1)
{
if (mount_table[index].path == RT_NULL) break;
-
+
if (dfs_mount(mount_table[index].device_name,
mount_table[index].path,
mount_table[index].filesystemtype,