From 37fc5036bcda62f15307c342b7af00fbead27d85 Mon Sep 17 00:00:00 2001 From: Jiuzhu Dong Date: Fri, 20 Aug 2021 22:10:28 +0800 Subject: [PATCH] inode_getpath: correct get path whether path buffer is clean or not. Signed-off-by: Jiuzhu Dong --- fs/inode/fs_inodegetpath.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/inode/fs_inodegetpath.c b/fs/inode/fs_inodegetpath.c index 4c4a163d668..aaeb99bd0eb 100644 --- a/fs/inode/fs_inodegetpath.c +++ b/fs/inode/fs_inodegetpath.c @@ -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)