commit | 99b19eb1bb736d7066026894aa69e70de8a03094 | [log] [tgz] |
---|---|---|
author | Petr Machata <pmachata@redhat.com> | Tue Feb 05 01:48:21 2013 +0100 |
committer | Petr Machata <pmachata@redhat.com> | Tue Mar 12 00:08:52 2013 +0100 |
tree | 22e4df61c48c7d333f264ee103ed22b037b4c3eb | |
parent | f2d5f79591fdb1a22b4e7c8e4cbb8274dc7daa40 [diff] [blame] |
elf_get_section_* should return 0 if section wasn't found Otherwise it won't be possible to differentiate between an error and not-found condition. It seems some callers (MIPS, PPC backends) already count on that behavior anyway.
diff --git a/ltrace-elf.c b/ltrace-elf.c index 7de9155..aff585e 100644 --- a/ltrace-elf.c +++ b/ltrace-elf.c
@@ -141,8 +141,9 @@ return 0; } } - return -1; + *tgt_sec = NULL; + return 0; } static int