summaryrefslogtreecommitdiffstats
path: root/libelf/elf_getarhdr.c
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2008-12-15 14:17:39 +0100
committerPetr Machata <[email protected]>2008-12-15 14:17:39 +0100
commit19932ff89b678877a45c25cd7c555db255cacabb (patch)
treea539e43d1a5ad24a2a870695791484348f3f9da3 /libelf/elf_getarhdr.c
parent468fe4d81a3e92157f4c0446675487dc230b2ec6 (diff)
Dump com.redhat.elfutils.pmachata.sharing from monotone.upstream/pmachata/sharing
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);