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; }