changeset 17962:f35cfd56c800

NEVER assign static strings to string command line options. Fix crash on exit with fontconfig.
author albeu
date Sun, 26 Mar 2006 19:10:43 +0000
parents 7ba686737423
children c15d5f06de5d
files libvo/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/font_load_ft.c	Sun Mar 26 14:23:22 2006 +0000
+++ b/libvo/font_load_ft.c	Sun Mar 26 19:10:43 2006 +0000
@@ -1147,7 +1147,7 @@
     if (font_fontconfig)
     {
 	if (!font_name)
-	    font_name = "sans-serif";
+	    font_name = strdup("sans-serif");
 	FcInit();
 	fc_pattern = FcNameParse(font_name);
 	FcConfigSubstitute(0, fc_pattern, FcMatchPattern);