make sure memory is initialized
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed, 15 Jul 2009 08:36:41 +0200
changeset 4682 b9d9ae596f83
parent 4680 a52c39181dd4
child 4683 c0fe0e815439
make sure memory is initialized
utils/bench-simulator.cc
--- a/utils/bench-simulator.cc	Mon Jul 13 14:30:12 2009 +0200
+++ b/utils/bench-simulator.cc	Wed Jul 15 08:36:41 2009 +0200
@@ -33,6 +33,7 @@
 class Bench 
 {
 public:
+  Bench ();
   void ReadDistribution (std::istream &istream);
   void SetTotal (uint32_t total);
   void RunBench (void);
@@ -44,6 +45,11 @@
   uint32_t m_total;
 };
 
+Bench::Bench ()
+  : m_n (0),
+    m_total (0)
+{}
+
 void 
 Bench::SetTotal (uint32_t total)
 {