diff options
Diffstat (limited to 'elf/dl-close.c')
-rw-r--r-- | elf/dl-close.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-close.c b/elf/dl-close.c index 8caa2973d9..f2f2b8bdce 100644 --- a/elf/dl-close.c +++ b/elf/dl-close.c @@ -106,7 +106,7 @@ _dl_close (struct link_map *map) unsigned int cnt = _dl_main_searchlist->r_nlist; do - if (--cnt < 0) + if (cnt-- == 0) break; while (_dl_main_searchlist->r_list[cnt] != imap); |