aboutsummaryrefslogtreecommitdiffhomepage
path: root/libvo
diff options
context:
space:
mode:
authorGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 18:30:32 +0000
committerGravatar reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-14 18:30:32 +0000
commitaf356b5d1573632226853260c6d725e54ac5be44 (patch)
tree1824095cc8bbebcb78e5e78cb932674aa9c043f2 /libvo
parentf452c1262fd167a90fd63e13bd2de7bf8c7ca17b (diff)
Use calloc instead of malloc+memset
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30586 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/font_load_ft.c3
1 files changed, 1 insertions, 2 deletions
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;