From 4d2f25ea4fcfd512f86e7ba3ac657c02426a0310 Mon Sep 17 00:00:00 2001 From: Dehao Chen Date: Wed, 24 Jun 2015 11:06:14 -0700 Subject: [PATCH] Fix the uninitialized variable issue in symbol map. --- symbol_map.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/symbol_map.h b/symbol_map.h index 7a1ad14..f8392d9 100644 --- a/symbol_map.h +++ b/symbol_map.h @@ -106,9 +106,9 @@ class Symbol { // This constructor is used to create inlined symbol. Symbol(const char *name, const char *dir, const char *file, uint32 start) : info(SourceInfo(name, dir, file, start, 0, 0)), - total_count(0), head_count(0) {} + total_count(0), head_count(0), callsites(0), pos_counts(0) {} - Symbol() : total_count(0), head_count(0) {} + Symbol() : total_count(0), head_count(0), callsites(0), pos_counts(0) {} ~Symbol(); @@ -151,12 +151,12 @@ typedef map > NameAliasMap; class SymbolMap { public: explicit SymbolMap(const string &binary) - : binary_(binary), base_addr_(0) { + : binary_(binary), base_addr_(0), count_threshold_(0) { BuildSymbolMap(); BuildNameAddressMap(); } - explicit SymbolMap() {} + SymbolMap() : base_addr_(0), count_threshold_(0) {} ~SymbolMap();