aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2011-06-19 18:32:36 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2011-06-20 20:07:28 +0200
commit98705aa51cbfee81ecd2498a014c285ac677ba69 (patch)
treedcd42eff69a50111b29f7bdb7cad396dd49c6b7b /src/wallet.h
parent04e442070d3db1abb761d3e04d80d6ece6d5602b (diff)
downloadbitcoin-98705aa51cbfee81ecd2498a014c285ac677ba69.tar.xz
Bugfixes walletclass
Some problems found by ius: * compiler complains with no return after critical section block * CKeyStore::GetPrivKey(key) was undefined for unknown key * missing return statement in GetChange()
Diffstat (limited to 'src/wallet.h')
-rw-r--r--src/wallet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet.h b/src/wallet.h
index b14a2e8264..cda4293bd2 100644
--- a/src/wallet.h
+++ b/src/wallet.h
@@ -96,7 +96,7 @@ public:
{
if (!MoneyRange(txout.nValue))
throw std::runtime_error("CWallet::GetChange() : value out of range");
- if (IsChange(txout) ? txout.nValue : 0);
+ return (IsChange(txout) ? txout.nValue : 0);
}
bool IsMine(const CTransaction& tx) const
{