Zero-fill glyph_info_t before use.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 27 Feb 2009 23:06:53 +0000 (23:06 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 27 Feb 2009 23:06:53 +0000 (23:06 +0000)
Patch by Grigori G (greg chown ath cx).

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@28754 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 5cab560..ead118d 100644 (file)
@@ -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) {