From 0d97fe234053293d1ecda79514da6f6138501edf Mon Sep 17 00:00:00 2001 From: Max Wash Date: Sun, 19 Apr 2026 20:53:44 +0100 Subject: [PATCH] libc: io: file ringbuffer is now cleared on init --- lib/libc/io/stdio/ringbuf.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libc/io/stdio/ringbuf.c b/lib/libc/io/stdio/ringbuf.c index d336f8c..2115dc1 100644 --- a/lib/libc/io/stdio/ringbuf.c +++ b/lib/libc/io/stdio/ringbuf.c @@ -24,6 +24,7 @@ static int ringbuf_init(struct ringbuf *buf) return ENOMEM; } + memset(buf->buf_ptr, 0x0, buf->buf_max); return SUCCESS; }