]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
dwarflint: Initialize check_debug_info::_m_need_ranges
authorPetr Machata <pmachata@redhat.com>
Tue, 5 Apr 2011 15:51:48 +0000 (17:51 +0200)
committerPetr Machata <pmachata@redhat.com>
Tue, 5 Apr 2011 15:51:48 +0000 (17:51 +0200)
dwarflint/check_debug_abbrev.cc
dwarflint/check_debug_info.cc

index e668b2a05f247ad1821b29b71a0732cbcbe7e509..7fb9015c467a6b36b8bc6db4ce2b3853eee8501c 100644 (file)
@@ -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<std::map<unsigned, uint64_t>::iterator, bool> inserted
              = seen.insert (std::make_pair (attrib_name, attr_off));
index 453d832eadd72a11f2d60d67fde51a77866e0737..1b23829a70f27430223c12eaa588fb7a0191e8fd 100644 (file)
@@ -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 <cu_head> const &cu_headers = _m_cu_headers->cu_headers;
   sec &sec = _m_sec_info->sect;