Avoid dereferencing interruption_point if it is nullptr

This commit is contained in:
MarcoFalke committed 2023-05-02 20:19:28 +02:00
1 parent fa846ee074
commit fa26e3462a
1 file changed
+1 -1
+1 -1
View File
@@ -123,7 +123,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
uint256 prevkey;
std::map<uint32_t, Coin> outputs;
while (pcursor->Valid()) {
interruption_point();
if (interruption_point) interruption_point();
COutPoint key;
Coin coin;
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {