Mercurial > mplayer.hg
changeset 20660:89b78ea6bc70
use calloc() instead of malloc()
author | nicodvb |
---|---|
date | Sat, 04 Nov 2006 23:05:38 +0000 |
parents | 31b525f90395 |
children | d698ee121edc |
files | stream/stream_dvb.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/stream/stream_dvb.c Sat Nov 04 23:03:52 2006 +0000 +++ b/stream/stream_dvb.c Sat Nov 04 23:05:38 2006 +0000 @@ -655,7 +655,7 @@ if(mode != STREAM_READ) return STREAM_UNSUPORTED; - stream->priv = (dvb_priv_t*) malloc(sizeof(dvb_priv_t)); + stream->priv = (dvb_priv_t*) calloc(1, sizeof(dvb_priv_t)); if(stream->priv == NULL) return STREAM_ERROR;