summaryrefslogtreecommitdiff
path: root/libio/iofwide.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/iofwide.c')
-rw-r--r--libio/iofwide.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libio/iofwide.c b/libio/iofwide.c
index ae4f63f454..6c4b265915 100644
--- a/libio/iofwide.c
+++ b/libio/iofwide.c
@@ -114,7 +114,7 @@ _IO_fwide (fp, mode)
#ifdef _LIBC
{
struct gconv_fcts fcts;
- struct _IO_codecvt *cc = &fp->_wide_data->_codecvt;
+ struct _IO_codecvt *cc = fp->_codecvt = &fp->_wide_data->_codecvt;
__wcsmbs_clone_conv (&fcts);