From: Peter van Dijk Date: Fri, 29 Jul 2022 07:44:32 +0000 (+0200) Subject: dnsbulktest: initialise struct member; use correct type when setting it X-Git-Tag: auth-4.8.0-alpha0~2^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F11808%2Fhead;p=thirdparty%2Fpdns.git dnsbulktest: initialise struct member; use correct type when setting it --- 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) {