summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libvo/font_load_ft.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libvo/font_load_ft.c b/libvo/font_load_ft.c
index 5a5a09d108..771177eb96 100644
--- a/libvo/font_load_ft.c
+++ b/libvo/font_load_ft.c
@@ -1164,7 +1164,7 @@ void load_font_ft(int width, int height, font_desc_t** fontp, const char *font_n
FcDefaultSubstitute(fc_pattern);
fc_pattern2 = fc_pattern;
fc_pattern = FcFontMatch(0, fc_pattern, &result);
- if (result == FcResultMatch) {
+ if (fc_pattern) {
FcPatternDestroy(fc_pattern2);
FcPatternGetBool(fc_pattern, FC_SCALABLE, 0, &scalable);
if (scalable != FcTrue) {