mirror of
https://github.com/apache/nuttx.git
synced 2026-09-20 12:58:29 +08:00
inode_getpath: correct get path whether path buffer is clean or not.
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -53,7 +53,7 @@ int inode_getpath(FAR struct inode *node, FAR char *path)
|
||||
path[0] = '\0';
|
||||
return OK;
|
||||
}
|
||||
else if (node->i_parent != NULL)
|
||||
else
|
||||
{
|
||||
int ret = inode_getpath(node->i_parent, path);
|
||||
if (ret < 0)
|
||||
|
||||
Reference in New Issue
Block a user