summaryrefslogtreecommitdiff
path: root/src/stdio/open_memstream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdio/open_memstream.c')
-rw-r--r--src/stdio/open_memstream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stdio/open_memstream.c b/src/stdio/open_memstream.c
index ee834234..40f5ad60 100644
--- a/src/stdio/open_memstream.c
+++ b/src/stdio/open_memstream.c
@@ -89,6 +89,7 @@ FILE *open_memstream(char **bufp, size_t *sizep)
f->f.write = ms_write;
f->f.seek = ms_seek;
f->f.close = ms_close;
+ f->f.mode = -1;
if (!libc.threaded) f->f.lock = -1;