From: Fred Morcos Date: Tue, 31 May 2022 11:35:21 +0000 (+0200) Subject: Default init of DNSRecord fields X-Git-Tag: auth-4.8.0-alpha0~63^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=121560fd94b5633868318918380c13e73c987445;p=thirdparty%2Fpdns.git Default init of DNSRecord fields --- diff --git a/pdns/dnsparser.hh b/pdns/dnsparser.hh index fbb850efee..4f0f460b70 100644 --- a/pdns/dnsparser.hh +++ b/pdns/dnsparser.hh @@ -289,15 +289,16 @@ protected: struct DNSRecord { - DNSRecord() : d_type(0), d_class(QClass::IN), d_ttl(0), d_clen(0), d_place(DNSResourceRecord::ANSWER) + DNSRecord() : + d_type(0), d_class(QClass::IN), d_place(DNSResourceRecord::ANSWER) {} explicit DNSRecord(const DNSResourceRecord& rr); DNSName d_name; std::shared_ptr d_content; uint16_t d_type; - uint16_t d_class; - uint32_t d_ttl; - uint16_t d_clen; + uint16_t d_class{}; + uint32_t d_ttl{}; + uint16_t d_clen{}; DNSResourceRecord::Place d_place; bool operator<(const DNSRecord& rhs) const