[pango/speed-up-format-filtering: 3/8] fixup




commit 356e063fe5fb87d65ff40cadc42ac90e24b37e00
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Aug 21 21:48:20 2020 -0400

    fixup

 pango/pangofc-fontmap.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/pango/pangofc-fontmap.c b/pango/pangofc-fontmap.c
index 47c77f46..ca46f184 100644
--- a/pango/pangofc-fontmap.c
+++ b/pango/pangofc-fontmap.c
@@ -847,6 +847,9 @@ filter_fontset_by_format (FcFontSet *fontset)
   FcFontSet *result;
   int i;
 
+  if (!fontset)
+    return NULL;
+
   result = FcFontSetCreate ();
 
   for (i = 0; i < fontset->nfont; i++)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]