From 9654fd27c05e1bf232e4816491bfa3a9312d3fef Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 15 Apr 1999 09:00:05 +0000 Subject: [PATCH] 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 . --- ChangeLog | 4 ++++ iconv/gconv_db.c | 3 +-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0345099787..7a5c5966c0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-04-15 Ulrich Drepper + * 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 . + * nscd/cache.c (prune_cache): The table might not be unused. In this case do nothing. 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