diff options
author | Roland McGrath <[email protected]> | 2009-05-07 18:57:18 -0700 |
---|---|---|
committer | Roland McGrath <[email protected]> | 2009-05-07 18:57:18 -0700 |
commit | e7c163324ebddf922f2827789b498ec1d7d9a2aa (patch) | |
tree | 7f98ce1b46aa491ad812e2ea685129a07758ae17 /libdw/dwarf_getmacros.c | |
parent | e2eabd88c9a95e640fee4afc64d7445d323b0716 (diff) |
Fix trivial regression in last commit.
Diffstat (limited to 'libdw/dwarf_getmacros.c')
-rw-r--r-- | libdw/dwarf_getmacros.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libdw/dwarf_getmacros.c b/libdw/dwarf_getmacros.c index 22afbc3f..4220ebef 100644 --- a/libdw/dwarf_getmacros.c +++ b/libdw/dwarf_getmacros.c @@ -65,6 +65,9 @@ dwarf_getmacros (die, callback, arg, offset) void *arg; ptrdiff_t offset; { + if (d == NULL) + return -1; + Elf_Data *d = die->cu->dbg->sectiondata[IDX_debug_macinfo]; if (unlikely (d == NULL) || unlikely (d->d_buf == NULL)) { |