summaryrefslogtreecommitdiffstats
path: root/plugins/alsa/ringbuf.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/alsa/ringbuf.c')
-rw-r--r--plugins/alsa/ringbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/alsa/ringbuf.c b/plugins/alsa/ringbuf.c
index b18ddb6..c24f278 100644
--- a/plugins/alsa/ringbuf.c
+++ b/plugins/alsa/ringbuf.c
@@ -46,7 +46,7 @@ ringbuf_new(size_t capacity)
/* One byte is used for detecting the full condition. */
rb->size = capacity + 1;
- rb->buf = malloc(rb->size);
+ rb->buf = calloc(1, rb->size);
if (rb->buf)
ringbuf_reset(rb);
else {