aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-addr.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-addr.c')
-rw-r--r--elf/dl-addr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-addr.c b/elf/dl-addr.c
index 535977c..5d3719a 100644
--- a/elf/dl-addr.c
+++ b/elf/dl-addr.c
@@ -83,7 +83,7 @@ _dl_addr (const void *address, Dl_info *info,
for (Elf_Symndx bucket = 0; bucket < match->l_nbuckets; ++bucket)
{
Elf32_Word symndx = match->l_gnu_buckets[bucket];
- if (bucket != 0)
+ if (symndx != 0)
{
const Elf32_Word *hasharr = &match->l_gnu_chain_zero[symndx];