From 6376c2ee3bcb33e2cb1c2990b9a150e9d135ce96 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Mon, 24 Jan 2022 17:00:41 +0100 Subject: [PATCH] Init two bools, as they may be used uninitialized if parsing fails --- pdns/test-zonemd_cc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdns/test-zonemd_cc.cc b/pdns/test-zonemd_cc.cc index b8d83d8f99..08c282c7db 100644 --- a/pdns/test-zonemd_cc.cc +++ b/pdns/test-zonemd_cc.cc @@ -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); -- 2.47.2