This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
gconv_open patch (2)
- To: libc-alpha at sourceware dot cygnus dot com
- Subject: gconv_open patch (2)
- From: Bruno Haible <haible at ilog dot fr>
- Date: Wed, 12 Jul 2000 19:38:33 +0200 (CEST)
While debugging the last problem, I saw that
__steps[0].__modname
was correctly initialized but
__steps[1].__modname
was uninitialized. Since __modname is actually used in gconv_db.c, I
propose to initialize it:
2000-07-12 Bruno Haible <haible@clisp.cons.org>
* iconv/gconv_builtin.c (__gconv_get_builtin_trans): Initialize
__modname.
*** glibc-20000706/iconv/gconv_builtin.c.bak Mon Jul 3 16:39:24 2000
--- glibc-20000706/iconv/gconv_builtin.c Wed Jul 12 02:09:17 2000
***************
*** 77,82 ****
--- 77,83 ----
step->__end_fct = map[cnt].end;
step->__counter = INT_MAX;
step->__shlib_handle = NULL;
+ step->__modname = NULL;
step->__min_needed_from = map[cnt].min_needed_from;
step->__max_needed_from = map[cnt].max_needed_from;