This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 3ced80c743ffdfb688c8727c959faec8ffa0fb25 Author: guohao15 <[email protected]> AuthorDate: Fri Nov 3 14:56:40 2023 +0800 basename: return path address instead of "/" when path="/" Signed-off-by: guohao15 <[email protected]> --- libs/libc/libgen/lib_basename.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/libgen/lib_basename.c b/libs/libc/libgen/lib_basename.c index 593d7e0269..9984c23820 100644 --- a/libs/libc/libgen/lib_basename.c +++ b/libs/libc/libgen/lib_basename.c @@ -83,7 +83,7 @@ FAR char *basename(FAR char *path) } else { - return "/"; + return path; } }
