]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[4283] Fixed a bug revealed by last change
authorFrancis Dupont <fdupont@isc.org>
Sat, 2 Jul 2016 09:14:15 +0000 (11:14 +0200)
committerFrancis Dupont <fdupont@isc.org>
Sat, 2 Jul 2016 09:14:15 +0000 (11:14 +0200)
src/bin/perfdhcp/tests/rate_control_unittest.cc

index d2824a272934b302a21428c08a6af6976eaf9671..cf2e0f6e308ccafdb56ea92bcbd403ec82385f8d 100644 (file)
@@ -138,7 +138,7 @@ TEST(RateControl, getOutboundMessageCount) {
     // when the calcuation is made may be different from the interval set.)  The
     // margin in this test is reasonably generous, allowing for a timing error
     // of around 10ms.
-    uint64_t count;
+    uint64_t count = 0;
     ASSERT_NO_THROW(count = rc1.getOutboundMessageCount());
     EXPECT_TRUE((count >= 5240) && (count <= 5260)) <<
         "count is " << count << ", expected range 5240-5260";