summaryrefslogtreecommitdiffstats
path: root/stream/stream_dvb.c
diff options
context:
space:
mode:
authornicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 23:05:38 +0000
committernicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-04 23:05:38 +0000
commitf3e6bf62a8c48da7c8448ddc5c7587630e670c94 (patch)
tree8524c21b3a3a9fb99469fe0433f6165040e52c78 /stream/stream_dvb.c
parentac9b9fcd196199c665743c5cbd7e13fac084a14f (diff)
downloadmpv-f3e6bf62a8c48da7c8448ddc5c7587630e670c94.tar.bz2
mpv-f3e6bf62a8c48da7c8448ddc5c7587630e670c94.tar.xz
use calloc() instead of malloc()
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20676 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream_dvb.c')
-rw-r--r--stream/stream_dvb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/stream_dvb.c b/stream/stream_dvb.c
index b6b782b80c..495fa29054 100644
--- a/stream/stream_dvb.c
+++ b/stream/stream_dvb.c
@@ -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;