Skip to content

Commit

Permalink
blockchain_blackball: fix build with CLANG 5
Browse files Browse the repository at this point in the history
It doesn't like the explicit NULL dereference (which is fine, honest)
  • Loading branch information
moneromooo-monero committed Apr 12, 2018
1 parent 3a9290b commit 3367ed8
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 @@ -253,7 +253,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 3367ed8

Please sign in to comment.