aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.cpp
diff options
context:
space:
mode:
authorxanatos <[email protected]>2012-09-05 11:32:13 +0300
committerxanatos <[email protected]>2012-09-05 11:32:13 +0300
commit4f76be1dc5a105aaf267e00166c6837da19dc862 (patch)
tree8aa8f8cd797d6f43c7c0400ca347a24d0fb5001c /src/wallet.cpp
parentMerge pull request #1789 from Diapolo/fix_double_Startuptime (diff)
downloaddiscoin-4f76be1dc5a105aaf267e00166c6837da19dc862.tar.xz
discoin-4f76be1dc5a105aaf267e00166c6837da19dc862.zip
Correct LoadWallet() return value (false -> DB_LOAD_OK)
Equivalent code. (false == 0 == DB_LOAD_OK). Fixes #1706.
Diffstat (limited to 'src/wallet.cpp')
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 2f312d809..f88a0e141 100644
--- a/src/wallet.cpp
+++ b/src/wallet.cpp
@@ -1367,7 +1367,7 @@ string CWallet::SendMoneyToDestination(const CTxDestination& address, int64 nVal
int CWallet::LoadWallet(bool& fFirstRunRet)
{
if (!fFileBacked)
- return false;
+ return DB_LOAD_OK;
fFirstRunRet = false;
int nLoadWalletRet = CWalletDB(strWalletFile,"cr+").LoadWallet(this);
if (nLoadWalletRet == DB_NEED_REWRITE)