diff options
| author | bernard <[email protected]> | 2017-11-30 23:55:22 +0800 |
|---|---|---|
| committer | bernard <[email protected]> | 2017-11-30 23:55:22 +0800 |
| commit | 2a83353e5f0ff1888feb528689bd4c9e2edeb566 (patch) | |
| tree | 9512901afbacb19922cef2cea9f664a2dff38085 /components/dfs/src | |
| parent | f004ff16f7b1a5399075026570e2195d6d3df284 (diff) | |
[DFS] fix the filesystem_operation_table issue.
Diffstat (limited to 'components/dfs/src')
| -rw-r--r-- | components/dfs/src/dfs_fs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c index ee3862ce3c..0e103fba44 100644 --- a/components/dfs/src/dfs_fs.c +++ b/components/dfs/src/dfs_fs.c @@ -22,6 +22,7 @@ * 2005-02-22 Bernard The first version. * 2010-06-30 Bernard Optimize for RT-Thread RTOS * 2011-03-12 Bernard fix the filesystem lookup issue. + * 2017-11-30 Bernard fix the filesystem_operation_table issue. */ #include <dfs_fs.h> @@ -252,7 +253,7 @@ int dfs_mount(const char *device_name, for (ops = &filesystem_operation_table[0]; ops < &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; ops++) - if ((ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0)) + if ((*ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0)) break; dfs_unlock(); |
