]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Init two bools, as they may be used uninitialized if parsing fails
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 24 Jan 2022 16:00:41 +0000 (17:00 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Mon, 24 Jan 2022 16:00:41 +0000 (17:00 +0100)
pdns/test-zonemd_cc.cc

index b8d83d8f99918550fdb8c3a9ceb47d55e6abc7c5..08c282c7db049fddd428e1fb5beb5a0d53bb5887 100644 (file)
@@ -18,7 +18,7 @@ static void testZoneMD(const std::string& zone, const std::string& file, bool ex
   pathbuf << p << "/../regression-tests/zones/" + file;
   ZoneParserTNG zpt(pathbuf.str(), z);
 
-  bool validationDone, validationOK;
+  bool validationDone = false, validationOK = false;
 
   try {
     auto zonemd = pdns::ZoneMD(z);