[MPlayer-cvslog] r34911 - trunk/sub/font_load_ft.c

reimar subversion at mplayerhq.hu
Wed May 16 23:30:07 CEST 2012


Author: reimar
Date: Wed May 16 23:30:07 2012
New Revision: 34911

Log:
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.

Modified:
   trunk/sub/font_load_ft.c

Modified: trunk/sub/font_load_ft.c
==============================================================================
--- trunk/sub/font_load_ft.c	Wed May 16 23:30:06 2012	(r34910)
+++ trunk/sub/font_load_ft.c	Wed May 16 23:30:07 2012	(r34911)
@@ -1130,7 +1130,7 @@ void load_font_ft(int width, int height,
     FcChar8 *s;
     int face_index;
     FcBool scalable;
-    FcResult result;
+    FcResult result = FcResultMatch;
 #endif
     font_desc_t *vo_font = *fontp;
     vo_image_width = width;


More information about the MPlayer-cvslog mailing list