diff --git a/components/dfs/src/dfs.c b/components/dfs/src/dfs.c index 4e38615ba756d675f5710ef412221012dd42c8a8..7e56137abab4447a395ae31aba4985c7101a9901 100644 --- a/components/dfs/src/dfs.c +++ b/components/dfs/src/dfs.c @@ -234,7 +234,11 @@ int fd_is_open(const char *pathname) mountpath = fullpath + strlen(fs->path); dfs_lock(); +#ifdef DFS_USING_STDIO + for (index = 3; index < DFS_FD_MAX+3; index++) +#else for (index = 0; index < DFS_FD_MAX; index++) +#endif { fd = &(fd_table[index]); if (fd->fs == RT_NULL)