summary refs log tree commit diff
path: root/libio/iofwide.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofwide.c')
-rw-r--r--libio/iofwide.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libio/iofwide.c b/libio/iofwide.c
index 8ad2129062..12649fd9c7 100644
--- a/libio/iofwide.c
+++ b/libio/iofwide.c
@@ -124,9 +124,9 @@ _IO_fwide (fp, mode)
 	cc->__cd_in.__cd.__data[0].__internal_use = 1;
 	cc->__cd_in.__cd.__data[0].__flags = __GCONV_IS_LAST;
 	cc->__cd_in.__cd.__data[0].__statep = &fp->_wide_data->_IO_state;
+
 	/* XXX For now no transliteration.  */
-	memset (&cc->__cd_in.__cd.__data[0].__trans, '\0',
-		sizeof (struct __gconv_trans_data));
+	cc->__cd_in.__cd.__data[0].__trans = NULL;
 
 	cc->__cd_out.__cd.__nsteps = 1; /* Only one step allowed.  */
 	cc->__cd_out.__cd.__steps = fcts.tomb;
@@ -135,9 +135,9 @@ _IO_fwide (fp, mode)
 	cc->__cd_out.__cd.__data[0].__internal_use = 1;
 	cc->__cd_out.__cd.__data[0].__flags = __GCONV_IS_LAST;
 	cc->__cd_out.__cd.__data[0].__statep = &fp->_wide_data->_IO_state;
+
 	/* XXX For now no transliteration.  */
-	memset (&cc->__cd_out.__cd.__data[0].__trans, '\0',
-		sizeof (struct __gconv_trans_data));
+	cc->__cd_out.__cd.__data[0].__trans = NULL;
       }
 #else
 # error "somehow determine this from LC_CTYPE"