diff options
Diffstat (limited to 'pango/fonts.c')
-rw-r--r-- | pango/fonts.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pango/fonts.c b/pango/fonts.c index 52ef72df..6b7d9495 100644 --- a/pango/fonts.c +++ b/pango/fonts.c @@ -1558,7 +1558,8 @@ pango_font_find_shaper (PangoFont *font, { PangoEngineShape* shaper; - g_return_val_if_fail (font != NULL, NULL); + if (G_UNLIKELY (!font)) + return NULL; shaper = PANGO_FONT_GET_CLASS (font)->find_shaper (font, language, ch); |