Fixed compiler warning

This commit is contained in:
Daniel Wolf 2016-09-23 21:15:55 +02:00
parent 2fdd98f5b3
commit de05f69507
1 changed files with 2 additions and 2 deletions

View File

@ -33,8 +33,8 @@ path getBinPath() {
// Convert to boost::filesystem::path
string pathString(buffer.data());
logging::debugFormat("Bin path: '{}'", pathString);
static path binPath(boost::filesystem::canonical(pathString).make_preferred());
return binPath;
path result(boost::filesystem::canonical(pathString).make_preferred());
return result;
} catch (...) {
std::throw_with_nested(std::runtime_error("Could not determine path of bin directory."));
}