blockchain_blackball: fix build with CLANG 5

It doesn't like the explicit NULL dereference (which is fine, honest)
pull/88/head
moneromooo-monero 6 years ago
parent 7090121b13
commit 3edef51d70
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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));

Loading…
Cancel
Save