mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 10:50:07 +00:00
Update.
* iconv/gconv_db.c (derivation_lookup): Use __tfind correctly.
This commit is contained in:
parent
cb37d8429a
commit
bd687f7ab4
@ -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.
|
||||
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user