From af356b5d1573632226853260c6d725e54ac5be44 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 14 Feb 2010 18:30:32 +0000 Subject: Use calloc instead of malloc+memset git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30586 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/font_load_ft.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libvo') diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c index 2b4caad215..97bfa7d960 100644 --- a/libvo/font_load_ft.c +++ b/libvo/font_load_ft.c @@ -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; -- cgit v1.2.3