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.
This commit is contained in:
Grissiom 2014-04-12 16:35:07 +08:00
parent 1b878f256f
commit 4b7e9c6447
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
prefixlen = 0;
RT_ASSERT(path);
/* lock filesystem */
dfs_lock();