From 24a6058de818c9711520f9d1fd9c97145299b46b Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Fri, 29 Jul 2022 09:44:32 +0200 Subject: [PATCH] dnsbulktest: initialise struct member; use correct type when setting it --- pdns/dnsbulktest.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pdns/dnsbulktest.cc b/pdns/dnsbulktest.cc index 5441c182bd..1a4d20f78e 100644 --- a/pdns/dnsbulktest.cc +++ b/pdns/dnsbulktest.cc @@ -57,7 +57,7 @@ struct DNSResult { vector ips; int rcode; - bool seenauthsoa; + bool seenauthsoa{false}; }; struct TypedQuery @@ -159,7 +159,7 @@ struct SendReceive if(i->first.d_place == 1 && i->first.d_type == mdp.d_qtype) dr.ips.push_back(ComboAddress(i->first.d_content->getZoneRepresentation())); if(i->first.d_place == 2 && i->first.d_type == QType::SOA) { - dr.seenauthsoa = 1; + dr.seenauthsoa = true; } if(!g_quiet) { -- 2.47.2