[MPlayer-cvslog] r20676 - trunk/stream/stream_dvb.c

nicodvb subversion at mplayerhq.hu
Sun Nov 5 00:05:38 CET 2006


Author: nicodvb
Date: Sun Nov  5 00:05:38 2006
New Revision: 20676

Modified:
   trunk/stream/stream_dvb.c

Log:
use calloc() instead of malloc()

Modified: trunk/stream/stream_dvb.c
==============================================================================
--- trunk/stream/stream_dvb.c	(original)
+++ trunk/stream/stream_dvb.c	Sun Nov  5 00:05:38 2006
@@ -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;
 



More information about the MPlayer-cvslog mailing list