# HG changeset patch # User Sebastien Jodogne # Date 1368008178 -7200 # Node ID 53d79c963e4ab39b613996183e8b5d0e405e93b0 # Parent 26bb4d05a0722eabcfa6fd34da2d5bfbe8e5b4ac fix for fedora 18 diff -r 26bb4d05a072 -r 53d79c963e4a OrthancServer/main.cpp --- a/OrthancServer/main.cpp Wed May 08 12:04:01 2013 +0200 +++ b/OrthancServer/main.cpp Wed May 08 12:16:18 2013 +0200 @@ -324,10 +324,10 @@ OrthancInitialize(); } - boost::filesystem::path storageDirectory = - InterpretStringParameterAsPath(GetGlobalStringParameter("StorageDirectory", "OrthancStorage")); + std::string storageDirectoryStr = GetGlobalStringParameter("StorageDirectory", "OrthancStorage"); + boost::filesystem::path storageDirectory = InterpretStringParameterAsPath(storageDirectoryStr); boost::filesystem::path indexDirectory = - InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectory.string())); + InterpretStringParameterAsPath(GetGlobalStringParameter("IndexDirectory", storageDirectoryStr)); ServerContext context(storageDirectory, indexDirectory); LOG(WARNING) << "Storage directory: " << storageDirectory;