summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGrissiom <[email protected]>2014-04-12 16:35:07 +0800
committerGrissiom <[email protected]>2014-04-12 16:35:07 +0800
commit4b7e9c6447d32aa403020d7731eee19a7e27119f (patch)
treee37cd5897326395a9a188867ce4cd848e6a08432 /components
parent1b878f256f0570ce26932930428945d872406b03 (diff)
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.
Diffstat (limited to 'components')
-rw-r--r--components/dfs/src/dfs_fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/components/dfs/src/dfs_fs.c b/components/dfs/src/dfs_fs.c
index 406403e51e..a41f36cf09 100644
--- a/components/dfs/src/dfs_fs.c
+++ b/components/dfs/src/dfs_fs.c
@@ -85,6 +85,8 @@ struct dfs_filesystem *dfs_filesystem_lookup(const char *path)
prefixlen = 0;
+ RT_ASSERT(path);
+
/* lock filesystem */
dfs_lock();