aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-12 13:51:26 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-04-12 14:04:31 +0100
commit3edef51d708e1235add4a453b7c51943d133004e (patch)
tree716bca4c297d19b44e420d2adb50cc1768811337 /src
parentMerge pull request #3512 (diff)
downloadmonero-3edef51d708e1235add4a453b7c51943d133004e.tar.xz
blockchain_blackball: fix build with CLANG 5
It doesn't like the explicit NULL dereference (which is fine, honest)
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_utilities/blockchain_blackball.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_blackball.cpp b/src/blockchain_utilities/blockchain_blackball.cpp
index 40ce898d9..1243822bb 100644
--- a/src/blockchain_utilities/blockchain_blackball.cpp
+++ b/src/blockchain_utilities/blockchain_blackball.cpp
@@ -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));