mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
Avoid dereferencing interruption_point if it is nullptr
This commit is contained in:
@@ -123,7 +123,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
|
|||||||
uint256 prevkey;
|
uint256 prevkey;
|
||||||
std::map<uint32_t, Coin> outputs;
|
std::map<uint32_t, Coin> outputs;
|
||||||
while (pcursor->Valid()) {
|
while (pcursor->Valid()) {
|
||||||
interruption_point();
|
if (interruption_point) interruption_point();
|
||||||
COutPoint key;
|
COutPoint key;
|
||||||
Coin coin;
|
Coin coin;
|
||||||
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {
|
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user