mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-15 11:36:00 -05:00
wallet: Avoid potential null pointer dereference in CWalletTx::GetAvailableCredit(...)
This commit is contained in:
parent
0568dcd67d
commit
d06330396f
1 changed files with 1 additions and 0 deletions
|
@ -1947,6 +1947,7 @@ CAmount CWalletTx::GetAvailableCredit(bool fUseCache, const isminefilter& filter
|
||||||
|
|
||||||
if (cache) {
|
if (cache) {
|
||||||
*cache = nCredit;
|
*cache = nCredit;
|
||||||
|
assert(cache_used);
|
||||||
*cache_used = true;
|
*cache_used = true;
|
||||||
}
|
}
|
||||||
return nCredit;
|
return nCredit;
|
||||||
|
|
Loading…
Add table
Reference in a new issue