[MPlayer-cvslog] r36534 - trunk/libmpdemux/demux_avs.c
reimar
subversion at mplayerhq.hu
Fri Dec 6 20:30:53 CET 2013
Author: reimar
Date: Fri Dec 6 20:30:53 2013
New Revision: 36534
Log:
demux_avs: calloc instead of malloc + memset
Patch by Gianluigi Tiesi [mplayer netfarm it].
Modified:
trunk/libmpdemux/demux_avs.c
Modified: trunk/libmpdemux/demux_avs.c
==============================================================================
--- trunk/libmpdemux/demux_avs.c Mon Dec 2 15:43:24 2013 (r36533)
+++ trunk/libmpdemux/demux_avs.c Fri Dec 6 20:30:53 2013 (r36534)
@@ -84,12 +84,10 @@ typedef struct tagAVS
static AVS_T *initAVS(const char *filename)
{
- AVS_T *AVS = malloc (sizeof(AVS_T));
+ AVS_T *AVS = calloc(1, sizeof(AVS_T));
AVS_Value arg0 = avs_new_value_string(filename);
AVS_Value args = avs_new_value_array(&arg0, 1);
- memset(AVS, 0, sizeof(AVS_T));
-
#ifdef WIN32_LOADER
AVS->ldt_fs = Setup_LDT_Keeper();
#endif
More information about the MPlayer-cvslog
mailing list