diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2018-07-17 10:22:10 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2018-07-17 10:58:22 +0200 |
commit | d06330396f64b9a3a3016afc1f937633b4b322ab (patch) | |
tree | c4c13b034e6fa97ee57e8b129c35804488dd8b3a /src | |
parent | 0568dcd67d34728042259dc8b987154d1970bb2c (diff) |
wallet: Avoid potential null pointer dereference in CWalletTx::GetAvailableCredit(...)
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet.cpp | 1 |
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; |