From 1cf39cb4b2492cb7e3e26ec242de09e7a6d9bc50 Mon Sep 17 00:00:00 2001 From: fsb4000 Date: Sun, 4 Jan 2015 05:13:35 +0600 Subject: [PATCH] =?utf8?q?=D0=B1=D0=BE=D0=BB=D0=B5=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB=D1=8C=D0=BD=D0=BE=D0=B5=20=D1=80=D0=B5=D1=88=D0=B5=D0=BD=D0=B8=D0=B5=20issue96=20=D0=B8=20issue95?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/init.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/init.cpp b/src/init.cpp index e40f36b..cc66c3d 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -28,7 +28,7 @@ using namespace boost; CWallet* pwalletMain; CClientUIInterface uiInterface; -std::string strWalletFileName = "wallet.dat"; +std::string strWalletFileName; bool fConfChange; unsigned int nNodeLifespan; unsigned int nDerivationMethodIndex; @@ -499,7 +499,7 @@ bool AppInit2() // ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log std::string strDataDir = GetDataDir().string(); - std::string strWalletFileName = GetArg("-wallet", "wallet.dat"); + strWalletFileName = GetArg("-wallet", "wallet.dat"); // strWalletFileName must be a plain filename without a directory if (strWalletFileName != boost::filesystem::basename(strWalletFileName) + boost::filesystem::extension(strWalletFileName)) -- 1.7.1