wallet: Avoid potential null pointer dereference in CWalletTx::GetAvailableCredit(...)

This commit is contained in:
practicalswift 2018-07-17 10:22:10 +02:00
parent 0568dcd67d
commit d06330396f

View file

@ -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;