changeset 30544:97a52849df57

Use calloc instead of malloc+memset
author reimar
date Sun, 14 Feb 2010 18:30:32 +0000
parents ee0b9c3bbf29
children 25b073b2cd65
files libvo/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load_ft.c	Sun Feb 14 15:39:52 2010 +0000
+++ b/libvo/font_load_ft.c	Sun Feb 14 18:30:32 2010 +0000
@@ -838,9 +838,8 @@
     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;