Skip to content

Commit 2a83353

Browse files
committed
[DFS] fix the filesystem_operation_table issue.
1 parent f004ff1 commit 2a83353

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

components/dfs/src/dfs_fs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* 2005-02-22 Bernard The first version.
2323
* 2010-06-30 Bernard Optimize for RT-Thread RTOS
2424
* 2011-03-12 Bernard fix the filesystem lookup issue.
25+
* 2017-11-30 Bernard fix the filesystem_operation_table issue.
2526
*/
2627

2728
#include <dfs_fs.h>
@@ -252,7 +253,7 @@ int dfs_mount(const char *device_name,
252253

253254
for (ops = &filesystem_operation_table[0];
254255
ops < &filesystem_operation_table[DFS_FILESYSTEM_TYPES_MAX]; ops++)
255-
if ((ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0))
256+
if ((*ops != NULL) && (strcmp((*ops)->name, filesystemtype) == 0))
256257
break;
257258

258259
dfs_unlock();

0 commit comments

Comments
 (0)