summaryrefslogtreecommitdiffstats
path: root/libelf/elf_getarhdr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libelf/elf_getarhdr.c')
-rw-r--r--libelf/elf_getarhdr.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libelf/elf_getarhdr.c b/libelf/elf_getarhdr.c
index 61e4e0a2..648bcbf7 100644
--- a/libelf/elf_getarhdr.c
+++ b/libelf/elf_getarhdr.c
@@ -76,8 +76,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_wrlock (parent) != 0)
+ if (parent->state.ar.elf_ar_hdr.ar_name == NULL)
{
rwlock_wrlock (parent->lock);
int st = __libelf_next_arhdr_wrlock (parent);