changeset 20202:9b67ed06f721

Zerofill libass static variables during initialization. Patch by Jindrich Makovicka <makovick a gmail d com>.
author eugeni
date Sat, 14 Oct 2006 14:42:23 +0000
parents 4a21653e69d5
children 8d2ec25b47ac
files libass/ass_render.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);