9
0
Fork 0

FS: Add a check for a NULL pathname.

This commit is contained in:
Gregory Nutt 2014-12-13 13:05:54 -06:00
parent 9c64d15e49
commit fef451758a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}