Browse Source

Merge pull request #4980

20a11ff minor variable init changes in init.cpp (Philip Kaufmann)
0.10
Pieter Wuille 10 years ago
parent
commit
471d38b015
No known key found for this signature in database
GPG Key ID: 57896D2FF8F0B657
  1. 9
      src/init.cpp

9
src/init.cpp

@ -45,7 +45,7 @@ using namespace boost; @@ -45,7 +45,7 @@ using namespace boost;
using namespace std;
#ifdef ENABLE_WALLET
CWallet* pwalletMain;
CWallet* pwalletMain = NULL;
#endif
#ifdef WIN32
@ -109,7 +109,7 @@ bool ShutdownRequested() @@ -109,7 +109,7 @@ bool ShutdownRequested()
return fRequestShutdown;
}
static CCoinsViewDB *pcoinsdbview;
static CCoinsViewDB *pcoinsdbview = NULL;
void Shutdown()
{
@ -165,8 +165,8 @@ void Shutdown() @@ -165,8 +165,8 @@ void Shutdown()
#endif
UnregisterAllWallets();
#ifdef ENABLE_WALLET
if (pwalletMain)
delete pwalletMain;
delete pwalletMain;
pwalletMain = NULL;
#endif
LogPrintf("%s: done\n", __func__);
}
@ -701,6 +701,7 @@ bool AppInit2(boost::thread_group& threadGroup) @@ -701,6 +701,7 @@ bool AppInit2(boost::thread_group& threadGroup)
fIsBareMultisigStd = GetArg("-permitbaremultisig", true) != 0;
// ********************************************************* Step 4: application initialization: dir lock, daemonize, pidfile, debug log
// Sanity check
if (!InitSanityCheck())
return InitError(_("Initialization sanity check failed. Bitcoin Core is shutting down."));

Loading…
Cancel
Save