diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-12-18 22:38:08 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-12-18 22:38:08 +0000 |
commit | 56bc0b83ea81b7e959aaa4e1d01f8b36f2804a52 (patch) | |
tree | bc88f45df09a0819c43122d8101500c51874c1c2 /libdw/dwarf_getlocation.c | |
parent | 8190db6a86a37aec86c81626ab1b083c96aff891 (diff) |
Lock down libelf and elflint a bit more after import of Roland's changes.
Diffstat (limited to 'libdw/dwarf_getlocation.c')
-rw-r--r-- | libdw/dwarf_getlocation.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libdw/dwarf_getlocation.c b/libdw/dwarf_getlocation.c index cefd052b..f680aa96 100644 --- a/libdw/dwarf_getlocation.c +++ b/libdw/dwarf_getlocation.c @@ -471,13 +471,13 @@ dwarf_getlocation_addr (attr, address, llbufs, listlens, maxlocs) &attr_mem), &base) != 0) { - if (INTUSE(dwarf_errno) () == 0) - /* The compiler provided no base address when it should - have. Buggy GCC does this when it used absolute - addresses in the location list and no DW_AT_ranges. */ - base = 0; - else + if (INTUSE(dwarf_errno) () != 0) return -1; + + /* The compiler provided no base address when it should + have. Buggy GCC does this when it used absolute + addresses in the location list and no DW_AT_ranges. */ + base = 0; } } |