mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
1999-11-25 Ulrich Drepper <drepper@cygnus.com> * iconv/gconv.c (__gconv): Always initialize cd->__data[last_step].__outbuf and cd->__data[last_step].__outbufend. * iconvdata/iso-2022-kr.c (EMIT_SHIFT_TO_INIT): Update number of written bytes. * iconvdata/iso-2022-jp.c: Likewise.
This commit is contained in:
@ -39,6 +39,9 @@ __gconv (__gconv_t cd, const unsigned char **inbuf,
|
||||
assert (converted != NULL);
|
||||
*converted = 0;
|
||||
|
||||
cd->__data[last_step].__outbuf = *outbuf;
|
||||
cd->__data[last_step].__outbufend = outbufend;
|
||||
|
||||
if (inbuf == NULL || *inbuf == NULL)
|
||||
/* We just flush. */
|
||||
result = DL_CALL_FCT (cd->__steps->__fct,
|
||||
@ -49,8 +52,6 @@ __gconv (__gconv_t cd, const unsigned char **inbuf,
|
||||
const unsigned char *last_start;
|
||||
|
||||
assert (outbuf != NULL && *outbuf != NULL);
|
||||
cd->__data[last_step].__outbuf = *outbuf;
|
||||
cd->__data[last_step].__outbufend = outbufend;
|
||||
|
||||
do
|
||||
{
|
||||
|
Reference in New Issue
Block a user