mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
inode_getpath: correct get path whether path buffer is clean or not.
Change-Id: I21989a257e07e22c24a9cf92c7e42685fde80936 Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
This commit is contained in:
parent
b3cb28a9ae
commit
ebcc2550d1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue