Fix of a crash intruduced with e8247c5646

This commit is contained in:
bubnikv 2018-05-23 13:19:25 +02:00
parent 076b293fec
commit a9499ae45c
4 changed files with 29 additions and 15 deletions

View file

@ -95,7 +95,7 @@ const std::string& var_dir()
std::string var(const std::string &file_name)
{
auto file = boost::filesystem::canonical(boost::filesystem::path(g_var_dir) / file_name).make_preferred();
auto file = (boost::filesystem::path(g_var_dir) / file_name).make_preferred();
return file.string();
}