commit | e7c163324ebddf922f2827789b498ec1d7d9a2aa | [log] [tgz] |
---|---|---|
author | Roland McGrath <roland@redhat.com> | Thu May 07 18:57:18 2009 -0700 |
committer | Roland McGrath <roland@redhat.com> | Thu May 07 18:57:18 2009 -0700 |
tree | 7f98ce1b46aa491ad812e2ea685129a07758ae17 | |
parent | e2eabd88c9a95e640fee4afc64d7445d323b0716 [diff] |
Fix trivial regression in last commit.
diff --git a/libdw/dwarf_getmacros.c b/libdw/dwarf_getmacros.c index 22afbc3..4220ebe 100644 --- a/libdw/dwarf_getmacros.c +++ b/libdw/dwarf_getmacros.c
@@ -65,6 +65,9 @@ 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)) {