mirror of
https://github.com/ksherlock/mpw.git
synced 2024-11-22 00:32:44 +00:00
fix segpath when realpath returns NULL.
This commit is contained in:
parent
bfa09940e7
commit
5deea9eb84
@ -87,7 +87,8 @@ namespace OS {
|
|||||||
|
|
||||||
// expand the path. Also handles relative paths.
|
// expand the path. Also handles relative paths.
|
||||||
char *cp = ::fs_spec_realpath(path.c_str(), buffer);
|
char *cp = ::fs_spec_realpath(path.c_str(), buffer);
|
||||||
|
if (!cp) return "";
|
||||||
|
|
||||||
return std::string(cp);
|
return std::string(cp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user