mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 10:58:49 +08:00
basename: return path address instead of "/" when path="/"
Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
parent
86e00896d3
commit
3ced80c743
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ FAR char *basename(FAR char *path)
|
|||
}
|
||||
else
|
||||
{
|
||||
return "/";
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue