diff options
Diffstat (limited to 'libdw/dwarf_getpubnames.c')
-rw-r--r-- | libdw/dwarf_getpubnames.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdw/dwarf_getpubnames.c b/libdw/dwarf_getpubnames.c index c8b9f9f6..9fbfcbf3 100644 --- a/libdw/dwarf_getpubnames.c +++ b/libdw/dwarf_getpubnames.c @@ -125,7 +125,7 @@ get_offsets (Dwarf *dbg) readp += len; } - if (mem == NULL) + if (mem == NULL || cnt == 0) { __libdw_seterrno (DWARF_E_NO_ENTRY); return -1; |