aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Garzik <jgarzik@exmulti.com>2012-09-05 06:32:55 -0700
committerJeff Garzik <jgarzik@exmulti.com>2012-09-05 06:32:55 -0700
commit32416e380bee9af646fe1156577bba5d45b52e6a (patch)
tree8aa8f8cd797d6f43c7c0400ca347a24d0fb5001c
parente271c1d3d0707870ab346cf3e96bab4e413f16ba (diff)
parent4f76be1dc5a105aaf267e00166c6837da19dc862 (diff)
Merge pull request #1791 from xanatos/patch-18
Correct LoadWallet() return value (false -> DB_LOAD_OK)
-rw-r--r--src/wallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp
index 2f312d809e..f88a0e1413 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)