about summary refs log tree commit diff
path: root/libio/wmemstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/wmemstream.c')
-rw-r--r--libio/wmemstream.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/libio/wmemstream.c b/libio/wmemstream.c
index bf2a50b523..fd01be08ed 100644
--- a/libio/wmemstream.c
+++ b/libio/wmemstream.c
@@ -112,8 +112,6 @@ _IO_wmem_sync (_IO_FILE *fp)
       _IO_wstr_overflow (fp, '\0');
       --fp->_wide_data->_IO_write_ptr;
     }
-  else
-    *fp->_wide_data->_IO_write_ptr = '\0';
 
   *mp->bufloc = fp->_wide_data->_IO_write_base;
   *mp->sizeloc = (fp->_wide_data->_IO_write_ptr