about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-05-15 17:08:11 +0000
committerUlrich Drepper <drepper@redhat.com>1998-05-15 17:08:11 +0000
commitbd687f7ab43028d3722984a6bcf48115bb82d9bb (patch)
tree027152723aa03cd3e99696ea3017d6e6238f73b8
parentcb37d8429a6d2da1e76e4e9ff22c51939ef56a6d (diff)
downloadglibc-bd687f7ab43028d3722984a6bcf48115bb82d9bb.tar.gz
glibc-bd687f7ab43028d3722984a6bcf48115bb82d9bb.tar.xz
glibc-bd687f7ab43028d3722984a6bcf48115bb82d9bb.zip
Update.
	* iconv/gconv_db.c (derivation_lookup): Use __tfind correctly.
-rw-r--r--ChangeLog2
-rw-r--r--iconv/gconv_db.c6
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f8afb393a3..e264b026e5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 1998-05-15  Ulrich Drepper  <drepper@cygnus.com>
 
+	* iconv/gconv_db.c (derivation_lookup): Use __tfind correctly.
+
 	* sysdeps/generic/setenv.c (setenv): Remove optimization for
 	overwriting existing values if it fits.
 
diff --git a/iconv/gconv_db.c b/iconv/gconv_db.c
index 503c5d0c86..b98cc8f4f2 100644
--- a/iconv/gconv_db.c
+++ b/iconv/gconv_db.c
@@ -102,15 +102,15 @@ derivation_lookup (const char *fromset, const char *toset,
 		   struct gconv_step **handle, size_t *nsteps)
 {
   struct known_derivation key = { fromset, toset, NULL, 0 };
-  struct known_derivation *result;
+  struct known_derivation **result;
 
   result = __tfind (&key, &known_derivations, derivation_compare);
 
   if (result == NULL)
     return GCONV_NOCONV;
 
-  *handle = result->steps;
-  *nsteps = result->nsteps;
+  *handle = (*result)->steps;
+  *nsteps = (*result)->nsteps;
 
   /* Please note that we return GCONV_OK even if the last search for
      this transformation was unsuccessful.  */