changeset 426:53d79c963e4a

fix for fedora 18
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 08 May 2013 12:16:18 +0200
parents 26bb4d05a072
children 9d2e1009076a
files OrthancServer/main.cpp
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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;