提交 753de206 编写于 作者: B bernard.xiong@gmail.com

fix dfs_filesystem_lookup issue in empty item.

git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1162 bbd45198-f89e-11dd-88c7-29a3b14d5316
上级 400c012e
......@@ -88,8 +88,12 @@ struct dfs_filesystem* dfs_filesystem_lookup(const char *path)
/* lookup it in the filesystem table */
for (index = 0; index < DFS_FILESYSTEMS_MAX + 1; index++)
{
fspath = strlen(filesystem_table[index].path);
if (fspath < prefixlen) continue;
if (filesystem_table[index].path == RT_NULL) continue;
else
{
fspath = strlen(filesystem_table[index].path);
if (fspath < prefixlen) continue;
}
if ((filesystem_table[index].ops != RT_NULL) &&
strncmp(filesystem_table[index].path, path, fspath) == 0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册