summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-10-02 19:34:52 +0200
committerAnton Kling <anton@kling.gg>2024-10-02 19:34:52 +0200
commit4f52e561379d3328fd3d8508da8b72c44cf542a4 (patch)
treead1039860165f7e89fad42a11e9ca5adbb89245b /userland
parent5a7640af235a2068c233ce47a56d74defd4c2f0e (diff)
libc: Fix FILE memstream bug
Diffstat (limited to 'userland')
-rw-r--r--userland/libc/stdio/open_memstream.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/userland/libc/stdio/open_memstream.c b/userland/libc/stdio/open_memstream.c
index 0d3df86..c829644 100644
--- a/userland/libc/stdio/open_memstream.c
+++ b/userland/libc/stdio/open_memstream.c
@@ -84,6 +84,7 @@ FILE *open_memstream(char **bufp, size_t *sizep) {
fp->is_eof = 0;
fp->has_error = 0;
fp->file_size = MEMSTREAM_DEF_SIZE;
+ fp->fflush = NULL;
fp->write = memstream_write;
fp->read = memstream_read;