mirror of
git://git.musl-libc.org/musl
synced 2025-01-22 06:33:22 +00:00
fix uninitialized variable in dladdr
the affected branch only applies for DSOs that lack standard hash table and only have the GNU hash table present.
This commit is contained in:
parent
a938b5a12d
commit
7886985e13
@ -1354,7 +1354,7 @@ int __dladdr(void *addr, Dl_info *info)
|
||||
uint32_t *hashval;
|
||||
buckets = p->ghashtab + 4 + (p->ghashtab[2]*sizeof(size_t)/4);
|
||||
sym += p->ghashtab[1];
|
||||
for (i = 0; i < p->ghashtab[0]; i++) {
|
||||
for (i = nsym = 0; i < p->ghashtab[0]; i++) {
|
||||
if (buckets[i] > nsym)
|
||||
nsym = buckets[i];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user