mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +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
|
else
|
||||||
{
|
{
|
||||||
return "/";
|
return path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user