From 9028ab74c92b493dd14200ee01229591b5c206f6 Mon Sep 17 00:00:00 2001 From: Mathieu Lacage Date: Wed, 15 Jul 2009 08:36:41 +0200 Subject: [PATCH] make sure memory is initialized --- utils/bench-simulator.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/utils/bench-simulator.cc b/utils/bench-simulator.cc index 75eeda668..8a3011ec1 100644 --- a/utils/bench-simulator.cc +++ b/utils/bench-simulator.cc @@ -33,6 +33,7 @@ bool g_debug = false; class Bench { public: + Bench (); void ReadDistribution (std::istream &istream); void SetTotal (uint32_t total); void RunBench (void); @@ -44,6 +45,11 @@ private: uint32_t m_total; }; +Bench::Bench () + : m_n (0), + m_total (0) +{} + void Bench::SetTotal (uint32_t total) {