Fixes crash on empty path config string

If the config exists as an empty string then this would crash
This commit is contained in:
Ryan Houdek committed 2021-03-23 18:02:56 -07:00
1 parent 82c2b49a2e
commit e3380957ba
1 file changed
+4
+4
View File
@@ -90,6 +90,10 @@ namespace FEXCore::Config {
}
std::string ExpandPath(std::string PathName) {
if (PathName.empty()) {
return {};
}
std::filesystem::path Path{PathName};
// Expand home if it exists