blockchain_blackball: fix build with CLANG 5

It doesn't like the explicit NULL dereference (which is fine, honest)

(cherry picked from commit 3367ed863c)
This commit is contained in:
moneromooo-monero 2018-04-12 13:51:26 +01:00 committed by Matthew Incognito
parent a47d1a3d75
commit 52572e9b21
No known key found for this signature in database
GPG Key ID: A09E643F541C0FC5
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ int main(int argc, char* argv[])
return 1; return 1;
} }
std::vector<std::unique_ptr<Blockchain>> core_storage(inputs.size()); 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) for (size_t n = 0; n < inputs.size(); ++n)
{ {
core_storage[n].reset(new Blockchain(m_mempool)); core_storage[n].reset(new Blockchain(m_mempool));