make sure memory is initialized
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user