summaryrefslogtreecommitdiff
path: root/pango/pangofc-fontmap.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-03-15 13:08:36 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-03-15 13:08:36 -0400
commit9644e56231280151803e0bdbee7141507a6b899f (patch)
tree5cdc1e75e38c171bc8a46b8023c7cf0c88cd298a /pango/pangofc-fontmap.c
parentdf05d117a5c168fb90138d7d6bae760c1b2851af (diff)
downloadpango-9644e56231280151803e0bdbee7141507a6b899f.tar.gz
Red Hat Bug 490331 - Crash of galeon in libpango
Don't crash when no fonts installed.
Diffstat (limited to 'pango/pangofc-fontmap.c')
-rw-r--r--pango/pangofc-fontmap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index ee8183b0..6ef90019 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -778,7 +778,7 @@ pango_fc_patterns_get_font_pattern (PangoFcPatterns *pats, int i)
}
}
- if (i < pats->fontset->nfont)
+ if (pats->fontset && i < pats->fontset->nfont)
return pats->fontset->fonts[i];
else
return NULL;