]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
Fix cppcheck complain
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 26 Nov 2012 15:18:47 +0000 (16:18 +0100)
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>
Mon, 26 Nov 2012 15:18:47 +0000 (16:18 +0100)
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.

src/lib/dns/tests/master_loader_callbacks_test.cc

index 7ed9afe4fc53c9b06fa1b946053df14074da39c3..aafbe24c584e23b7bc1f8863d40108c51c3a93d2 100644 (file)
@@ -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))),