aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-06-13 02:55:54 +0000
committerUlrich Drepper <drepper@redhat.com>2000-06-13 02:55:54 +0000
commitff048a13e5d2c971de0275c30b4d55c4ed2a2abf (patch)
tree38d5eda4f01a3d9128efa64149e8d48e8649f0f4 /wcsmbs
parent0aaf6d96f8fdb4a64850ea8b24e3c9e73742f5d6 (diff)
downloadglibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.zip
glibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.tar.gz
glibc-ff048a13e5d2c971de0275c30b4d55c4ed2a2abf.tar.bz2
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.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/btowc.c1
-rw-r--r--wcsmbs/mbrtowc.c1
-rw-r--r--wcsmbs/mbsnrtowcs.c1
-rw-r--r--wcsmbs/mbsrtowcs.c1
-rw-r--r--wcsmbs/wcrtomb.c1
-rw-r--r--wcsmbs/wcsnrtombs.c1
-rw-r--r--wcsmbs/wcsrtombs.c1
-rw-r--r--wcsmbs/wctob.c1
8 files changed, 8 insertions, 0 deletions
diff --git a/wcsmbs/btowc.c b/wcsmbs/btowc.c
index 1271a01..a684103 100644
--- a/wcsmbs/btowc.c
+++ b/wcsmbs/btowc.c
@@ -49,6 +49,7 @@ __btowc (c)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = &data.__state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
/* Make sure we start in the initial state. */
memset (&data.__state, '\0', sizeof (mbstate_t));
diff --git a/wcsmbs/mbrtowc.c b/wcsmbs/mbrtowc.c
index 9809ed5..b67b3f7 100644
--- a/wcsmbs/mbrtowc.c
+++ b/wcsmbs/mbrtowc.c
@@ -49,6 +49,7 @@ __mbrtowc (wchar_t *pwc, const char *s, size_t n, mbstate_t *ps)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = ps ?: &state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
/* A first special case is if S is NULL. This means put PS in the
initial state. */
diff --git a/wcsmbs/mbsnrtowcs.c b/wcsmbs/mbsnrtowcs.c
index 238458d..51d9cd0 100644
--- a/wcsmbs/mbsnrtowcs.c
+++ b/wcsmbs/mbsnrtowcs.c
@@ -57,6 +57,7 @@ __mbsnrtowcs (dst, src, nmc, len, ps)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = ps ?: &state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
if (nmc == 0)
return 0;
diff --git a/wcsmbs/mbsrtowcs.c b/wcsmbs/mbsrtowcs.c
index 3c1f86a..77e631e 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 ();
diff --git a/wcsmbs/wcrtomb.c b/wcsmbs/wcrtomb.c
index f0bc824..375a000 100644
--- a/wcsmbs/wcrtomb.c
+++ b/wcsmbs/wcrtomb.c
@@ -49,6 +49,7 @@ __wcrtomb (char *s, wchar_t wc, mbstate_t *ps)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = ps ?: &state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
/* A first special case is if S is NULL. This means put PS in the
initial state. */
diff --git a/wcsmbs/wcsnrtombs.c b/wcsmbs/wcsnrtombs.c
index dae2216..ec87d85 100644
--- a/wcsmbs/wcsnrtombs.c
+++ b/wcsmbs/wcsnrtombs.c
@@ -55,6 +55,7 @@ __wcsnrtombs (dst, src, nwc, len, ps)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = ps ?: &state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
if (nwc == 0)
return 0;
diff --git a/wcsmbs/wcsrtombs.c b/wcsmbs/wcsrtombs.c
index 03ef013..b2e4c18 100644
--- a/wcsmbs/wcsrtombs.c
+++ b/wcsmbs/wcsrtombs.c
@@ -51,6 +51,7 @@ __wcsrtombs (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 ();
diff --git a/wcsmbs/wctob.c b/wcsmbs/wctob.c
index fc4c383..800a37e 100644
--- a/wcsmbs/wctob.c
+++ b/wcsmbs/wctob.c
@@ -43,6 +43,7 @@ wctob (c)
data.__internal_use = 1;
data.__flags = __GCONV_IS_LAST;
data.__statep = &data.__state;
+ memset (&data.__trans, '\0', sizeof (struct __gconv_trans_data));
/* Make sure we start in the initial state. */
memset (&data.__state, '\0', sizeof (mbstate_t));