Skip to content

Commit

Permalink
common/perf_histogram: initialize member vars of axis_config_d
Browse files Browse the repository at this point in the history
addresses CID 1400670:    (UNINIT_CTOR)

Signed-off-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Feb 17, 2017
1 parent aa77407 commit 68df34f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/common/perf_histogram.h
Expand Up @@ -29,11 +29,11 @@ class PerfHistogramCommon {
};

struct axis_config_d {
const char *m_name;
scale_type_d m_scale_type;
int64_t m_min;
int64_t m_quant_size;
int32_t m_buckets;
const char *m_name = nullptr;
scale_type_d m_scale_type = SCALE_LINEAR;
int64_t m_min = 0;
int64_t m_quant_size = 0;
int32_t m_buckets = 0;
};

protected:
Expand Down

0 comments on commit 68df34f

Please sign in to comment.