From ff048a13e5d2c971de0275c30b4d55c4ed2a2abf Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 13 Jun 2000 02:55:54 +0000 Subject: Update. * libio/iofwide.c (_IO_fwide): Initialize transliteration part of step data structure. * wcsmbs/btowc.c: Likewise. * wcsmbs/mbrtowc.c: Likewise. * wcsmbs/mbsnrtowcs.c: Likewise. * wcsmbs/mbsrtowcs.c: Likewise. * wcsmbs/wcrtomb.c: Likewise. * wcsmbs/wcsnrtombs.c: Likewise. * wcsmbs/wcsrtombs.c: Likewise. * wcsmbs/wctob.c: Likewise. --- wcsmbs/mbsrtowcs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'wcsmbs/mbsrtowcs.c') diff --git a/wcsmbs/mbsrtowcs.c b/wcsmbs/mbsrtowcs.c index 3c1f86a196..77e631ea46 100644 --- a/wcsmbs/mbsrtowcs.c +++ b/wcsmbs/mbsrtowcs.c @@ -53,6 +53,7 @@ __mbsrtowcs (dst, src, len, ps) data.__internal_use = 1; data.__flags = __GCONV_IS_LAST; data.__statep = ps ?: &state; + memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data)); /* Make sure we use the correct function. */ update_conversion_ptrs (); -- cgit v1.2.3