From: eugeni Date: Sat, 14 Oct 2006 14:42:23 +0000 (+0000) Subject: Zerofill libass static variables during initialization. X-Git-Tag: 0.9.7~423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=096395fc40e48fc5c3400e72927a9c52a5e1c62c;p=libass Zerofill libass static variables during initialization. Patch by Jindrich Makovicka . git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20208 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 4fa53a0..abb2722 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -220,6 +220,10 @@ ass_instance_t* ass_init(void) FT_Library ft; ass_instance_t* priv = 0; + memset(&render_context, 0, sizeof(render_context)); + memset(&frame_context, 0, sizeof(frame_context)); + memset(&text_info, 0, sizeof(text_info)); + if (font_fontconfig && font_name) family = strdup(font_name);