make sure memory is initialized
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Wed Jul 15 08:36:41 2009 +0200 (6 months ago)
changeset 4702b9d9ae596f83
parent 4700 a52c39181dd4
child 4703 c0fe0e815439
make sure memory is initialized
utils/bench-simulator.cc
     1.1 --- a/utils/bench-simulator.cc	Mon Jul 13 14:30:12 2009 +0200
     1.2 +++ b/utils/bench-simulator.cc	Wed Jul 15 08:36:41 2009 +0200
     1.3 @@ -33,6 +33,7 @@
     1.4  class Bench 
     1.5  {
     1.6  public:
     1.7 +  Bench ();
     1.8    void ReadDistribution (std::istream &istream);
     1.9    void SetTotal (uint32_t total);
    1.10    void RunBench (void);
    1.11 @@ -44,6 +45,11 @@
    1.12    uint32_t m_total;
    1.13  };
    1.14  
    1.15 +Bench::Bench ()
    1.16 +  : m_n (0),
    1.17 +    m_total (0)
    1.18 +{}
    1.19 +
    1.20  void 
    1.21  Bench::SetTotal (uint32_t total)
    1.22  {