use calloc() instead of malloc()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20676 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-11-04 23:05:38 +00:00
parent ac9b9fcd19
commit f3e6bf62a8
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ static int dvb_open(stream_t *stream, int mode, void *opts, int *file_format)
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;