diff options
author | xanatos <xanatos@geocities.com> | 2012-09-05 11:32:13 +0300 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2012-09-06 20:39:12 +0000 |
commit | c1124277c5711ded556ea98b0eed1fb7b9081c8d (patch) | |
tree | 2c1082f22e681ea29e731881bfb26c6a6a39377a | |
parent | b9b15578bb52a7a7394fd1ef497f186c5c950cb1 (diff) | |
download | bitcoin-c1124277c5711ded556ea98b0eed1fb7b9081c8d.tar.xz |
Correct LoadWallet() return value (false -> DB_LOAD_OK)
Equivalent code. (false == 0 == DB_LOAD_OK). Fixes #1706.
-rw-r--r-- | src/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.cpp b/src/wallet.cpp index 38d2b64a17..b482aeae24 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -1129,7 +1129,7 @@ string CWallet::SendMoneyToBitcoinAddress(const CBitcoinAddress& address, int64 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) |