summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-01-20 19:46:12 +0000
committerUlrich Drepper <drepper@redhat.com>1999-01-20 19:46:12 +0000
commitad11b5a745d0aeee42ead08f6cadfe4dcc84ad82 (patch)
treedd0d8d5016d18dc07c81dd26b9f8095eccdf5c2f /elf
parentd3556ac929680a279b9a989b0797c1dba7da8389 (diff)
downloadglibc-ad11b5a745d0aeee42ead08f6cadfe4dcc84ad82.tar.gz
glibc-ad11b5a745d0aeee42ead08f6cadfe4dcc84ad82.tar.xz
glibc-ad11b5a745d0aeee42ead08f6cadfe4dcc84ad82.zip
Update.
	* elf/dl-close.c (_dl_close): Fix last patch (cnt is unsigned).
Diffstat (limited to 'elf')
-rw-r--r--elf/dl-close.c2
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);