basename: return path address instead of "/" when path="/"
Signed-off-by: guohao15 <guohao15@xiaomi.com>
This commit is contained in:
parent
86e00896d3
commit
3ced80c743
@ -83,7 +83,7 @@ FAR char *basename(FAR char *path)
|
||||
}
|
||||
else
|
||||
{
|
||||
return "/";
|
||||
return path;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user