libc: io: file ringbuffer is now cleared on init
This commit is contained in:
@@ -24,6 +24,7 @@ static int ringbuf_init(struct ringbuf *buf)
|
||||
return ENOMEM;
|
||||
}
|
||||
|
||||
memset(buf->buf_ptr, 0x0, buf->buf_max);
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user