summaryrefslogtreecommitdiff
path: root/ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring.c')
-rw-r--r--ring.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ring.c b/ring.c
index b0feea0..b5c626c 100644
--- a/ring.c
+++ b/ring.c
@@ -49,8 +49,7 @@ void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size)
{
size_t i, len = num * sizeof(*ring->frames);
- ring->frames = xmalloc_aligned(len, CO_CACHE_LINE_SIZE);
- fmemset(ring->frames, 0, len);
+ ring->frames = xzmalloc_aligned(len, CO_CACHE_LINE_SIZE);
for (i = 0; i < num; ++i) {
ring->frames[i].iov_len = size;