From 4b7e9c6447d32aa403020d7731eee19a7e27119f Mon Sep 17 00:00:00 2001 From: Grissiom Date: Sat, 12 Apr 2014 16:35:07 +0800 Subject: [PATCH] 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. --- components/dfs/src/dfs_fs.c | 2 ++ 1 file changed, 2 insertions(+) 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(); -- GitLab