summaryrefslogtreecommitdiffstats
path: root/libelf/elf_getarhdr.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2008-12-10 21:42:06 -0800
committerRoland McGrath <[email protected]>2008-12-10 21:42:06 -0800
commitd353328036180fc028fd367e5fd49e69511b4436 (patch)
tree40da15ae4a211a5121c651181e654c2133a2c411 /libelf/elf_getarhdr.c
parent5d3bd4f85e36c733d25d5cee69938401bea64478 (diff)
* elf_getarhdr.c (elf_getarhdr): Fix missing rename in last change.
Diffstat (limited to 'libelf/elf_getarhdr.c')
-rw-r--r--libelf/elf_getarhdr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libelf/elf_getarhdr.c b/libelf/elf_getarhdr.c
index 6cc6eddb..61e4e0a2 100644
--- a/libelf/elf_getarhdr.c
+++ b/libelf/elf_getarhdr.c
@@ -77,7 +77,7 @@ elf_getarhdr (elf)
/* Make sure we have read the archive header. */
if (parent->state.ar.elf_ar_hdr.ar_name == NULL
- && __libelf_next_arhdr (parent) != 0)
+ && __libelf_next_arhdr_wrlock (parent) != 0)
{
rwlock_wrlock (parent->lock);
int st = __libelf_next_arhdr_wrlock (parent);