libc: io: file ringbuffer is now cleared on init

This commit is contained in:
2026-04-19 20:53:44 +01:00
parent 902537ad52
commit 0d97fe2340
+1
View File
@@ -24,6 +24,7 @@ static int ringbuf_init(struct ringbuf *buf)
return ENOMEM;
}
memset(buf->buf_ptr, 0x0, buf->buf_max);
return SUCCESS;
}