Patch for gconv_open patch (1)
H . J . Lu
hjl@valinux.com
Wed Jul 12 18:04:00 GMT 2000
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. */
More information about the Libc-hacker
mailing list