mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-25 10:43:19 -03:00
Avoid dereferencing interruption_point if it is nullptr
This commit is contained in:
parent
fa846ee074
commit
fa26e3462a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue