]> git.wh0rd.org - fontconfig.git/blobdiff - src/fcfreetype.c
Pass the buck; make fontconfig not crash on pango badness.
[fontconfig.git] / src / fcfreetype.c
index de20fd78163d6e365ba088dcb24a2d9b5262b2e7..e3c5ef23168c1dae2e68c460e527a1d920d9c06a 100644 (file)
@@ -2312,6 +2312,10 @@ FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4)
     int                    p;
 
     initial = 0;
+
+    if (!face)
+        return 0;
+
     /*
      * Find the current encoding
      */