summaryrefslogtreecommitdiffstats
path: root/stream/stream_cdda.c
diff options
context:
space:
mode:
Diffstat (limited to 'stream/stream_cdda.c')
-rw-r--r--stream/stream_cdda.c3
1 files changed, 1 insertions, 2 deletions
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)