mirror of
https://github.com/twisterarmy/twister-core.git
synced 2025-01-26 22:44:17 +00:00
init.cpp: fix build error, and possibly-uninit'd warning
This commit is contained in:
parent
38e8f282d2
commit
dcb14198bb
@ -470,7 +470,7 @@ bool AppInit2()
|
|||||||
printf("Bitcoin version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str());
|
printf("Bitcoin version %s (%s)\n", FormatFullVersion().c_str(), CLIENT_DATE.c_str());
|
||||||
printf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION));
|
printf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION));
|
||||||
printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
||||||
if (!fLogTimeStamps)
|
if (!fLogTimestamps)
|
||||||
printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
printf("Startup time: %s\n", DateTimeStrFormat("%x %H:%M:%S", GetTime()).c_str());
|
||||||
printf("Default data directory %s\n", GetDefaultDataDir().string().c_str());
|
printf("Default data directory %s\n", GetDefaultDataDir().string().c_str());
|
||||||
printf("Used data directory %s\n", GetDataDir().string().c_str());
|
printf("Used data directory %s\n", GetDataDir().string().c_str());
|
||||||
@ -647,7 +647,7 @@ bool AppInit2()
|
|||||||
uiInterface.InitMessage(_("Loading wallet..."));
|
uiInterface.InitMessage(_("Loading wallet..."));
|
||||||
printf("Loading wallet...\n");
|
printf("Loading wallet...\n");
|
||||||
nStart = GetTimeMillis();
|
nStart = GetTimeMillis();
|
||||||
bool fFirstRun;
|
bool fFirstRun = true;
|
||||||
pwalletMain = new CWallet("wallet.dat");
|
pwalletMain = new CWallet("wallet.dat");
|
||||||
int nLoadWalletRet = pwalletMain->LoadWallet(fFirstRun);
|
int nLoadWalletRet = pwalletMain->LoadWallet(fFirstRun);
|
||||||
if (nLoadWalletRet != DB_LOAD_OK)
|
if (nLoadWalletRet != DB_LOAD_OK)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user