[MPlayer-cvslog] CVS: main m_option.c,1.45,1.46

Reimar Döffinger CVS syncmail at mplayerhq.hu
Wed Feb 22 21:39:47 CET 2006


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv31357

Modified Files:
	m_option.c 
Log Message:
use calloc instead of malloc in copy_func_pf, missing initialization of
next field caused crash (fixes bug #459)


Index: m_option.c
===================================================================
RCS file: /cvsroot/mplayer/main/m_option.c,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- m_option.c	24 Jan 2006 11:14:13 -0000	1.45
+++ m_option.c	22 Feb 2006 20:39:44 -0000	1.46
@@ -718,7 +718,7 @@
     free_func_pf(dst);
 
   while(s) {
-    d = (m_func_save_t*)malloc(sizeof(m_func_save_t));
+    d = (m_func_save_t*)calloc(1,sizeof(m_func_save_t));
     d->name = strdup(s->name);
     d->param = s->param ? strdup(s->param) : NULL;
     if(last)




More information about the MPlayer-cvslog mailing list