summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arbits/slbt_archive_meta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arbits/slbt_archive_meta.c b/src/arbits/slbt_archive_meta.c
index 45f47fd..8eb64db 100644
--- a/src/arbits/slbt_archive_meta.c
+++ b/src/arbits/slbt_archive_meta.c
@@ -599,7 +599,7 @@ static int slbt_ar_parse_primary_armap_sysv_64(
cap = memberp->ar_object_data;
cap += memberp->ar_object_size;
- if (cap == m->symstrs)
+ if ((cap == m->symstrs) && nsyms)
return SLBT_CUSTOM_ERROR(
dctx,
SLBT_ERR_AR_INVALID_ARMAP_STRING_TABLE);