changeset 34823:2960cd0eef6f

Initialize "result" variable since FcFontMatch only sets it on failure. This is currently kind of pointless since we don't actually use the result, but it is better to not take any risks.
author reimar
date Wed, 16 May 2012 21:30:07 +0000
parents 93f079e4e579
children 59bac49bba26
files sub/font_load_ft.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sub/font_load_ft.c	Wed May 16 21:30:06 2012 +0000
+++ b/sub/font_load_ft.c	Wed May 16 21:30:07 2012 +0000
@@ -1130,7 +1130,7 @@
     FcChar8 *s;
     int face_index;
     FcBool scalable;
-    FcResult result;
+    FcResult result = FcResultMatch;
 #endif
     font_desc_t *vo_font = *fontp;
     vo_image_width = width;