Skip to content

Commit

Permalink
Fix clang warning: null dereference in mempool
Browse files Browse the repository at this point in the history
- Fix taken from XMR ##3619
  • Loading branch information
who-biz committed Jul 15, 2019
1 parent cdb5cf2 commit 3ab0bd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blockchain_utilities/blockchain_blackball.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ int main(int argc, char* argv[])
return 1;
}
std::vector<std::unique_ptr<Blockchain>> core_storage(inputs.size());
tx_memory_pool m_mempool(*(Blockchain*)NULL);
Blockchain *blockchain = NULL;
tx_memory_pool m_mempool(*blockchain);
for (size_t n = 0; n < inputs.size(); ++n)
{
core_storage[n].reset(new Blockchain(m_mempool));
Expand Down

0 comments on commit 3ab0bd4

Please sign in to comment.