提交 4b7e9c64 编写于 作者: G Grissiom

dfs: assert the path is not null in dfs_filesystem_lookup

Clang complains about "Null pointer argument in call to string
comparison function". So assert on it.
上级 1b878f25
......@@ -85,6 +85,8 @@ struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
prefixlen = 0;
RT_ASSERT(path);
/* lock filesystem */
dfs_lock();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册