mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +08:00
basename: return path address instead of "/" when path="/"
Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
@@ -83,7 +83,7 @@ FAR char *basename(FAR char *path)
|
||||
}
|
||||
else
|
||||
{
|
||||
return "/";
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user