From: Petr Machata Date: Tue, 5 Apr 2011 15:51:48 +0000 (+0200) Subject: dwarflint: Initialize check_debug_info::_m_need_ranges X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d5142986e5a5f84a93a9b2b04b8b2f97ef990732;p=thirdparty%2Felfutils.git dwarflint: Initialize check_debug_info::_m_need_ranges --- diff --git a/dwarflint/check_debug_abbrev.cc b/dwarflint/check_debug_abbrev.cc index e668b2a05..7fb9015c4 100644 --- a/dwarflint/check_debug_abbrev.cc +++ b/dwarflint/check_debug_abbrev.cc @@ -419,11 +419,11 @@ namespace form const *form = check_debug_abbrev::check_form (ver, attribute, attrib_form, &where, false); if (form == NULL) - // Error message has been emitted in check_form. - failed = true; - - if (form == NULL) - continue; + { + // Error message has been emitted in check_form. + failed = true; + continue; + } std::pair::iterator, bool> inserted = seen.insert (std::make_pair (attrib_name, attr_off)); diff --git a/dwarflint/check_debug_info.cc b/dwarflint/check_debug_info.cc index 453d832ea..1b23829a7 100644 --- a/dwarflint/check_debug_info.cc +++ b/dwarflint/check_debug_info.cc @@ -1082,6 +1082,7 @@ check_debug_info::check_debug_info (checkstack &stack, dwarflint &lint) , _m_file (_m_sec_info->file) , _m_abbrevs (lint.check (stack, _m_abbrevs)) , _m_cu_headers (lint.check (stack, _m_cu_headers)) + , _m_need_ranges (false) { std::vector const &cu_headers = _m_cu_headers->cu_headers; sec &sec = _m_sec_info->sect;