fix segpath when realpath returns NULL.

This commit is contained in:
Kelvin Sherlock 2015-01-09 12:46:01 -05:00
parent bfa09940e7
commit 5deea9eb84

View File

@ -87,6 +87,7 @@ namespace OS {
// expand the path. Also handles relative paths.
char *cp = ::fs_spec_realpath(path.c_str(), buffer);
if (!cp) return "";
return std::string(cp);
}