From c46284c98ce45eec453c64ae7f6f158090e668f1 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Fri, 30 Mar 2018 13:40:34 +0200 Subject: [PATCH] dnsdist: Initialize the done variable in the rings' unit tests --- pdns/dnsdistdist/test-dnsdistrings_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/dnsdistdist/test-dnsdistrings_cc.cc b/pdns/dnsdistdist/test-dnsdistrings_cc.cc index 7849b51f57..c98016c729 100644 --- a/pdns/dnsdistdist/test-dnsdistrings_cc.cc +++ b/pdns/dnsdistdist/test-dnsdistrings_cc.cc @@ -198,7 +198,7 @@ BOOST_AUTO_TEST_CASE(test_Rings_Threaded) { Rings::Query query({now, requestor, qname, size, qtype, dh}); Rings::Response response({now, requestor, qname, qtype, latency, size, dh, server}); - std::atomic done; + std::atomic done(false); std::vector writerThreads; std::thread readerThread(ringReaderThread, std::ref(rings), std::ref(done), numberOfEntries, qtype); -- 2.47.2