diff --git a/src/common/config.cpp b/src/common/config.cpp index 4fb2818e4..281646059 100644 --- a/src/common/config.cpp +++ b/src/common/config.cpp @@ -13,6 +13,9 @@ namespace toml { template std::filesystem::path find_fs_path_or(const basic_value& v, const K& ky, std::filesystem::path opt) { + if (opt.empty()) { + return opt; + } try { auto str = find(v, ky); std::u8string u8str{(char8_t*)&str.front(), (char8_t*)&str.back() + 1};