From: Otto Moerbeek Date: Mon, 24 Jan 2022 16:00:41 +0000 (+0100) Subject: Init two bools, as they may be used uninitialized if parsing fails X-Git-Tag: auth-4.7.0-alpha1~42^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6376c2ee3bcb33e2cb1c2990b9a150e9d135ce96;p=thirdparty%2Fpdns.git Init two bools, as they may be used uninitialized if parsing fails --- 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);