aboutsummaryrefslogtreecommitdiff
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, 1 insertions, 1 deletions
diff --git a/libio/wmemstream.c b/libio/wmemstream.c
index 1709f2dd33..85ea64991a 100644
--- a/libio/wmemstream.c
+++ b/libio/wmemstream.c
@@ -83,7 +83,7 @@ open_wmemstream (bufloc, sizeloc)
new_f->fp._sf._sbf._f._lock = &new_f->lock;
#endif
- buf = malloc (_IO_BUFSIZ);
+ buf = calloc (1, _IO_BUFSIZ);
if (buf == NULL)
return NULL;