summaryrefslogtreecommitdiff
path: root/libdw/c++/dwarf
diff options
context:
space:
mode:
Diffstat (limited to 'libdw/c++/dwarf')
-rw-r--r--libdw/c++/dwarf2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/c++/dwarf b/libdw/c++/dwarf
index c6a31a91..81d7d85c 100644
--- a/libdw/c++/dwarf
+++ b/libdw/c++/dwarf
@@ -637,7 +637,7 @@ namespace elfutils
inline attribute operator* () const
{
- if (unlikely (_m_offset == 1 && _m_attr.valp == NULL))
+ if (unlikely (_m_attr.valp == NULL))
throw std::runtime_error ("dereferencing end iterator");
return attribute (_m_die, _m_attr);
}