aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--elf/dl-close.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 10b1a7b..9da7770 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
1999-01-20 Ulrich Drepper <drepper@cygnus.com>
+ * elf/dl-close.c (_dl_close): Fix last patch (cnt is unsigned).
+
* elf/dl-close.c: Handle failed loads which would have gone in the
global scope correctly.
diff --git a/elf/dl-close.c b/elf/dl-close.c
index 8caa297..f2f2b8b 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);