Initialize all doubles to 0 in histogram.cc

Summary:
The existing code did not initialize a few doubles in histogram.cc.
Cropped up when I wrote a unit-test.

Test Plan: make all check

Reviewers: chip

Reviewed By: chip

CC: leveldb

Differential Revision: https://reviews.facebook.net/D8319
This commit is contained in:
Abhishek Kona 2013-01-31 17:07:31 -08:00
parent 009034cf12
commit 4dc02f7b7a

View File

@ -58,6 +58,11 @@ namespace {
Histogram::Histogram() :
min_(bucketMapper.LastValue()),
max_(0),
num_(0),
sum_(0),
sum_squares_(0),
buckets_(std::vector<uint64_t>(bucketMapper.BucketCount(), 0)) {}
void Histogram::Clear() {