aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpracticalswift <practicalswift@users.noreply.github.com>2018-07-17 10:22:10 +0200
committerpracticalswift <practicalswift@users.noreply.github.com>2018-07-17 10:58:22 +0200
commitd06330396f64b9a3a3016afc1f937633b4b322ab (patch)
treec4c13b034e6fa97ee57e8b129c35804488dd8b3a /src
parent0568dcd67d34728042259dc8b987154d1970bb2c (diff)
wallet: Avoid potential null pointer dereference in CWalletTx::GetAvailableCredit(...)
Diffstat (limited to 'src')
-rw-r--r--src/wallet/wallet.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp
index 067015c006..9b86613624 100644
--- a/src/wallet/wallet.cpp
+++ b/src/wallet/wallet.cpp
@@ -1947,6 +1947,7 @@ CAmount CWalletTx::GetAvailableCredit(bool fUseCache, const isminefilter& filter
if (cache) {
*cache = nCredit;
+ assert(cache_used);
*cache_used = true;
}
return nCredit;