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) {
|
||||
*cache = nCredit;
|
||||
assert(cache_used);
|
||||
*cache_used = true;
|
||||
}
|
||||
return nCredit;
|
||||
|
|
Loading…
Reference in a new issue