From acf6aef882eae08d87e353e7c6b33a179f4dea78 Mon Sep 17 00:00:00 2001 From: Bruno George Moraes Date: Fri, 26 Sep 2014 11:00:40 -0300 Subject: stream: change malloc+memset to calloc Also removed some memset that were left on some calloc that was already in the code. Signed-off-by: wm4 --- stream/stream_cdda.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'stream/stream_cdda.c') diff --git a/stream/stream_cdda.c b/stream/stream_cdda.c index d105141200..37a3aab1c5 100644 --- a/stream/stream_cdda.c +++ b/stream/stream_cdda.c @@ -314,8 +314,7 @@ static int open_cdda(stream_t *st) return STREAM_ERROR; } - priv = malloc(sizeof(cdda_priv)); - memset(priv, 0, sizeof(cdda_priv)); + priv = calloc(1,sizeof(cdda_priv)); priv->cd = cdd; if (p->toc_bias) -- cgit v1.2.3