diff --git a/toolbox/os_highlevel.cpp b/toolbox/os_highlevel.cpp index 794435d..f31ae46 100644 --- a/toolbox/os_highlevel.cpp +++ b/toolbox/os_highlevel.cpp @@ -87,7 +87,8 @@ 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); }