diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-10-13 11:12:28 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-10-13 11:12:28 -0700 |
commit | 53544380266a8eb38bef9389562fba3ed58a0d11 (patch) | |
tree | d040f7c483990e8cf4bb8e11102f15c04a2f6514 /elf/dl-fini.c | |
parent | fcb32af153a745414b0d949e707c9485ab77d6ba (diff) | |
download | glibc-53544380266a8eb38bef9389562fba3ed58a0d11.tar.gz |
Diffstat (limited to 'elf/dl-fini.c')
-rw-r--r-- | elf/dl-fini.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/elf/dl-fini.c b/elf/dl-fini.c index c35577565e..aa0f82783c 100644 --- a/elf/dl-fini.c +++ b/elf/dl-fini.c @@ -101,7 +101,7 @@ _dl_sort_fini (struct link_map **maps, size_t nmaps, char *used, Lmid_t ns) { /* If a cycle exists with a link time dependency, preserve the latter. */ - struct link_map **runp = thisp->l_initfini; + runp = thisp->l_initfini; if (runp != NULL) while (*runp != NULL) if (__glibc_unlikely (*runp++ == maps[k])) @@ -246,8 +246,8 @@ _dl_fini (void) ElfW(Addr) *array = (ElfW(Addr) *) (l->l_addr + l->l_info[DT_FINI_ARRAY]->d_un.d_ptr); - unsigned int i = (l->l_info[DT_FINI_ARRAYSZ]->d_un.d_val - / sizeof (ElfW(Addr))); + i = (l->l_info[DT_FINI_ARRAYSZ]->d_un.d_val + / sizeof (ElfW(Addr))); while (i-- > 0) ((fini_t) array[i]) (); } |