make sure memory is initialized

This commit is contained in:
Mathieu Lacage
2009-07-15 08:36:41 +02:00
parent 70c0c5b283
commit 9028ab74c9

View File

@@ -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)
{