summaryrefslogtreecommitdiffstats
path: root/libdw/dwarf_haschildren.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-12-31 00:21:04 -0800
committerRoland McGrath <roland@redhat.com>2008-12-31 00:21:04 -0800
commit1f6d2010bb26b6bf5395a98651fce9a1a9141ac3 (patch)
tree511b32bf01db236e8f2641195058697d4a29732f /libdw/dwarf_haschildren.c
parentec32ff94cfcb52f0bd5a5b00968fd590d444c306 (diff)
downloadandroid_external_elfutils-1f6d2010bb26b6bf5395a98651fce9a1a9141ac3.tar.gz
android_external_elfutils-1f6d2010bb26b6bf5395a98651fce9a1a9141ac3.tar.bz2
android_external_elfutils-1f6d2010bb26b6bf5395a98651fce9a1a9141ac3.zip
dwarf_haschildren: Return -1 for error case, not 0.
Diffstat (limited to 'libdw/dwarf_haschildren.c')
-rw-r--r--libdw/dwarf_haschildren.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdw/dwarf_haschildren.c b/libdw/dwarf_haschildren.c
index fe431955..d9a47ad2 100644
--- a/libdw/dwarf_haschildren.c
+++ b/libdw/dwarf_haschildren.c
@@ -1,5 +1,5 @@
/* Return string associated with given attribute.
- Copyright (C) 2003, 2005 Red Hat, Inc.
+ Copyright (C) 2003, 2005, 2008 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2003.
@@ -77,7 +77,7 @@ dwarf_haschildren (die)
if (unlikely (die->abbrev == DWARF_END_ABBREV))
{
__libdw_seterrno (DWARF_E_INVALID_DWARF);
- return 0;
+ return -1;
}
return die->abbrev->has_children;