summaryrefslogtreecommitdiff
path: root/libunwindstack/include/unwindstack/DwarfSection.h
diff options
context:
space:
mode:
authorChristopher Ferris <cferris@google.com>2017-08-09 11:16:03 -0700
committerChristopher Ferris <cferris@google.com>2017-08-09 14:22:12 -0700
commitf48995aa5d81869b562323448ec520d4ab8fffa4 (patch)
tree91dd259b69a296647194614406d910e5edaacf0c /libunwindstack/include/unwindstack/DwarfSection.h
parentd54c50ec381fb278eb15eb8627c0c397687dd789 (diff)
downloadunwinding-f48995aa5d81869b562323448ec520d4ab8fffa4.tar.gz
Small clean ups
- Remove redundant map_info checks. - Initialize fde_count_ to zero. Bug: 23762183 Contributed-By: Ivan Maidanski <i.maidanski@samsung.com> Test: Builds, run backtrace_test modifying CreateNew to Create and vice-versa. Change-Id: I6e9cdfa99734f8cc2d9915cc32c66a1455e79f1b
Diffstat (limited to 'libunwindstack/include/unwindstack/DwarfSection.h')
-rw-r--r--libunwindstack/include/unwindstack/DwarfSection.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libunwindstack/include/unwindstack/DwarfSection.h b/libunwindstack/include/unwindstack/DwarfSection.h
index a97ca2b..26485ae 100644
--- a/libunwindstack/include/unwindstack/DwarfSection.h
+++ b/libunwindstack/include/unwindstack/DwarfSection.h
@@ -106,7 +106,7 @@ class DwarfSection {
DwarfMemory memory_;
DwarfError last_error_;
- uint64_t fde_count_;
+ uint64_t fde_count_ = 0;
std::unordered_map<uint64_t, DwarfFde> fde_entries_;
std::unordered_map<uint64_t, DwarfCie> cie_entries_;
std::unordered_map<uint64_t, dwarf_loc_regs_t> cie_loc_regs_;