Skip to content

Commit fa26e34

Browse files
author
MarcoFalke
committed
Avoid dereferencing interruption_point if it is nullptr
1 parent fa846ee commit fa26e34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/kernel/coinstats.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
123123
uint256 prevkey;
124124
std::map<uint32_t, Coin> outputs;
125125
while (pcursor->Valid()) {
126-
interruption_point();
126+
if (interruption_point) interruption_point();
127127
COutPoint key;
128128
Coin coin;
129129
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {

0 commit comments

Comments
 (0)