Browse Source

[4283] Fixed a bug revealed by last change

Francis Dupont 8 years ago
parent
commit
41413db0a4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/bin/perfdhcp/tests/rate_control_unittest.cc

+ 1 - 1
src/bin/perfdhcp/tests/rate_control_unittest.cc

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