From 2fab33d5d73dacba7c220b0270f9a643942d97bc Mon Sep 17 00:00:00 2001 From: JoelKatz Date: Thu, 7 Mar 2013 18:10:38 -0800 Subject: [PATCH] Test was always true. --- src/cpp/ripple/Application.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cpp/ripple/Application.cpp b/src/cpp/ripple/Application.cpp index 9cbbdc766b..f0c3602658 100644 --- a/src/cpp/ripple/Application.cpp +++ b/src/cpp/ripple/Application.cpp @@ -26,9 +26,9 @@ Application* theApp = NULL; DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount) { - boost::filesystem::path pPath = theConfig.RUN_STANDALONE && !Config::LOAD + boost::filesystem::path pPath = (theConfig.RUN_STANDALONE && (!theConfig.START_UP != Config::LOAD)) ? "" // Use temporary files. - : theConfig.DATA_DIR / strName; // Use regular db files. + : (theConfig.DATA_DIR / strName); // Use regular db files. mDatabase = new SqliteDatabase(pPath.string().c_str()); mDatabase->connect();