make sure memory is initialized

This commit is contained in:
Mathieu Lacage committed 2009-07-15 08:36:41 +02:00
1 parent 1a76ccd5be
commit cb2c93e553
1 file changed
+6
+6
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)
{