Skip to content
Snippets Groups Projects
Commit 68038211 authored by Gregory Nutt's avatar Gregory Nutt
Browse files

FS: Add a check for a NULL pathname.

parent 041721cd
No related branches found
No related tags found
No related merge requests found
......@@ -77,7 +77,7 @@ FAR struct inode *inode_find(FAR const char *path, FAR const char **relpath)
{
FAR struct inode *node;
if (!*path || path[0] != '/')
if (!path || !*path || path[0] != '/')
{
return NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment