summary refs log tree commit diff
path: root/iconv
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-04-15 09:00:05 +0000
committerUlrich Drepper <drepper@redhat.com>1999-04-15 09:00:05 +0000
commit9654fd27c05e1bf232e4816491bfa3a9312d3fef (patch)
tree18a5ae4ab5e311befaa651bbca53269c84543938 /iconv
parent9514f4e693df6e4d9e92faeec2bd4e61ca15fcf4 (diff)
downloadglibc-9654fd27c05e1bf232e4816491bfa3a9312d3fef.tar.gz
glibc-9654fd27c05e1bf232e4816491bfa3a9312d3fef.tar.xz
glibc-9654fd27c05e1bf232e4816491bfa3a9312d3fef.zip
Update.
	* iconv/gconv_db.c (__gconv_find_transform): If conversion is
	known to not exist don't try to load shared objects.
	Patch by Petr Vandrovec Ing. VTEI <VANDROVE@vc.cvut.cz>.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/gconv_db.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/iconv/gconv_db.c b/iconv/gconv_db.c
index 70cdaffbe1..fdc3064d5c 100644
--- a/iconv/gconv_db.c
+++ b/iconv/gconv_db.c
@@ -655,7 +655,7 @@ __gconv_find_transform (const char *toset, const char *fromset,
       size_t cnt = *nsteps;
       struct gconv_step *steps = *handle;
 
-      do
+      while (cnt > 0)
 	if (steps[--cnt].counter++ == 0)
 	  {
 	    steps[cnt].shlib_handle =
@@ -670,7 +670,6 @@ __gconv_find_transform (const char *toset, const char *fromset,
 		break;
 	      }
 	  }
-      while (cnt > 0);
     }
 #endif