From 1556e436c522774dc714fbb461daf6d1b03480c7 Mon Sep 17 00:00:00 2001 From: Miguel Freitas Date: Fri, 19 Jul 2013 19:32:57 -0300 Subject: [PATCH] fix -datadir inicialization and debug log --- src/util.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/util.cpp b/src/util.cpp index 01451593..b4179b1f 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -526,6 +526,8 @@ static void InterpretNegativeSetting(string name, map& mapSettin void ParseParameters(int argc, const char* const argv[]) { + fCachedPath[0] = fCachedPath[1] = false; // clear cached path to receive cmdline + mapArgs.clear(); mapMultiArgs.clear(); for (int i = 1; i < argc; i++) @@ -567,6 +569,8 @@ void ParseParameters(int argc, const char* const argv[]) // interpret -nofoo as -foo=0 (and -nofoo=0 as -foo=1) as long as -foo not set InterpretNegativeSetting(name, mapArgs); } + + fReopenDebugLog = true; } std::string GetArg(const std::string& strArg, const std::string& strDefault)