This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.
Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
2000-07-12 Bruno Haible <haible@clisp.cons.org> * iconv/gconv_open.c (__gconv_open): Initialize result->__steps[cnt].__data. breaks "make check" in iconvdata. This kludge seems to work for me. -- H.J. Lu (hjl@gnu.org) -- 2000-07-12 H.J. Lu <hjl@gnu.org> * iconv/gconv_open.c (__gconv_open): Initialize result->__steps[cnt].__data only if it is NULL. Index: iconv/gconv_open.c =================================================================== RCS file: /work/cvs/gnu/glibc/iconv/gconv_open.c,v retrieving revision 1.1.1.6 diff -u -p -r1.1.1.6 gconv_open.c --- iconv/gconv_open.c 2000/07/12 20:45:32 1.1.1.6 +++ iconv/gconv_open.c 2000/07/13 00:58:31 @@ -242,7 +242,8 @@ __gconv_open (const char *toset, const c break; } - result->__steps[cnt].__data = &result->__data[cnt]; + if (!result->__steps[cnt].__data) + result->__steps[cnt].__data = &result->__data[cnt]; /* If this is the last step we must not allocate an output buffer. */
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |