Parcourir la source

Fix cppcheck complain

Cppcheck complained there's an uninitialized variable in constructor.
This is mostly a false positive (the value is not used before being
assigned), but fix it anyway to make it silent.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
ca25d3c2eb
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/lib/dns/tests/master_loader_callbacks_test.cc

+ 1 - 0
src/lib/dns/tests/master_loader_callbacks_test.cc

@@ -31,6 +31,7 @@ using namespace isc::dns;
 class MasterLoaderCallbacksTest : public ::testing::Test {
 protected:
     MasterLoaderCallbacksTest() :
+        last_was_error_(false), // Not needed, but then cppcheck complains
         issue_called_(false),
         rrset_(new RRset(Name("example.org"), RRClass::IN(), RRType::A(),
                          RRTTL(3600))),