From 898e80f2ebc045c7042d5e1d069ab8427fb6cb5c Mon Sep 17 00:00:00 2001 From: Wesley Shillingford Date: Tue, 5 Nov 2019 08:36:53 +0000 Subject: [PATCH] [Valgrind] Uninitialized memory in distributed_work.no_peers test (#2384) --- nano/core_test/distributed_work.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nano/core_test/distributed_work.cpp b/nano/core_test/distributed_work.cpp index 26c5e8c7..8cec20f5 100644 --- a/nano/core_test/distributed_work.cpp +++ b/nano/core_test/distributed_work.cpp @@ -16,7 +16,7 @@ TEST (distributed_work, no_peers) { nano::system system (24000, 1); auto node (system.nodes[0]); - nano::block_hash hash; + nano::block_hash hash{ 1 }; boost::optional work; std::atomic done{ false }; auto callback = [&work, &done](boost::optional work_a) {