mirror of https://github.com/mpv-player/mpv
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:
parent
ac9b9fcd19
commit
f3e6bf62a8
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue