]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
[bind-backend] Clang-tidy init bools. 12060/head
authorAxel Viala <axel.viala@darnuria.eu>
Tue, 4 Oct 2022 12:45:30 +0000 (14:45 +0200)
committerAxel Viala <axel.viala@darnuria.eu>
Sun, 6 Nov 2022 12:41:03 +0000 (13:41 +0100)
modules/bindbackend/bindbackend2.cc

index d98d52d9d4332a885ecec81cb7af7d625d37e129..2a7c622762a8283c32df6f872a21e348e104f3b8 100644 (file)
@@ -832,7 +832,7 @@ void Bind2Backend::fixupOrderAndAuth(std::shared_ptr<recordstorage_t>& records,
 
 void Bind2Backend::doEmptyNonTerminals(std::shared_ptr<recordstorage_t>& records, const DNSName& zoneName, bool nsec3zone, const NSEC3PARAMRecordContent& ns3pr)
 {
-  bool auth;
+  bool auth = false;
   DNSName shorter;
   std::unordered_set<DNSName> qnames;
   std::unordered_map<DNSName, bool> nonterm;
@@ -1151,7 +1151,7 @@ void Bind2Backend::lookup(const QType& qtype, const DNSName& qname, int zoneId,
 
   static bool mustlog = ::arg().mustDo("query-logging");
 
-  bool found;
+  bool found = false;
   DNSName domain;
   BB2DomainInfo bbd;