From 15ed6e01992e071a88674be5e3ce6be121e98555 Mon Sep 17 00:00:00 2001 From: eugeni Date: Fri, 27 Feb 2009 23:06:53 +0000 Subject: [PATCH] Zero-fill glyph_info_t before use. Patch by Grigori G (greg chown ath cx). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28754 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libass/ass_render.c b/libass/ass_render.c index 5cab560e50..ead118ddde 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1310,7 +1310,7 @@ static void get_outline_glyph(int symbol, glyph_info_t* info, FT_Vector* advance key.italic = render_context.italic; key.outline = render_context.border * 0xFFFF; - info->glyph = info->outline_glyph = 0; + memset(info, 0, sizeof(glyph_info_t)); val = cache_find_glyph(&key); if (val) {