# HG changeset patch # User eugeni # Date 1160836943 0 # Node ID 9b67ed06f72177c95ac112ef8cbf1898abdf132e # Parent 4a21653e69d517fc47067136c0daf4196b4b119b Zerofill libass static variables during initialization. Patch by Jindrich Makovicka . diff -r 4a21653e69d5 -r 9b67ed06f721 libass/ass_render.c --- a/libass/ass_render.c Sat Oct 14 14:35:33 2006 +0000 +++ b/libass/ass_render.c Sat Oct 14 14:42:23 2006 +0000 @@ -220,6 +220,10 @@ 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);