From 4f52e561379d3328fd3d8508da8b72c44cf542a4 Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Wed, 2 Oct 2024 19:34:52 +0200 Subject: libc: Fix FILE memstream bug --- userland/libc/stdio/open_memstream.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.2.3