[MPlayer-cvslog] r30586 - trunk/libvo/font_load_ft.c

reimar subversion at mplayerhq.hu
Sun Feb 14 19:30:32 CET 2010


Author: reimar
Date: Sun Feb 14 19:30:32 2010
New Revision: 30586

Log:
Use calloc instead of malloc+memset

Modified:
   trunk/libvo/font_load_ft.c

Modified: trunk/libvo/font_load_ft.c
==============================================================================
--- trunk/libvo/font_load_ft.c	Sun Feb 14 16:39:52 2010	(r30585)
+++ trunk/libvo/font_load_ft.c	Sun Feb 14 19:30:32 2010	(r30586)
@@ -838,9 +838,8 @@ static font_desc_t* init_font_desc(void)
     font_desc_t *desc;
     int i;
 
-    desc = malloc(sizeof(font_desc_t));
+    desc = calloc(1, sizeof(*desc));
     if(!desc) return NULL;
-    memset(desc,0,sizeof(font_desc_t));
 
     desc->dynamic = 1;
 


More information about the MPlayer-cvslog mailing list