diff options
Diffstat (limited to 'pango')
-rw-r--r-- | pango/pangofc-fontmap.cI | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.cI b/pango/pangofc-fontmap.cI index 28d5fa20..60e41dc7 100644 --- a/pango/pangofc-fontmap.cI +++ b/pango/pangofc-fontmap.cI @@ -862,10 +862,12 @@ _pango_fc_font_desc_from_pattern (FcPattern *pattern, gboolean include_size) char *s; int i; + FcResult res; desc = pango_font_description_new (); - g_assert (FcPatternGetString (pattern, FC_FAMILY, 0, (FcChar8 **) &s) == FcResultMatch); + res = FcPatternGetString (pattern, FC_FAMILY, 0, (FcChar8 **) &s); + g_assert (res == FcResultMatch); pango_font_description_set_family (desc, s); |