Pass the buck; make fontconfig not crash on pango badness.
authorPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:56:41 +0000 (15:56 +0000)
committerPatrick Lam <plam@MIT.EDU>
Tue, 21 Feb 2006 15:56:41 +0000 (15:56 +0000)
ChangeLog
src/fcfreetype.c

index 1f71f06..78aa4ae 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-02-21  Diego Petten  <flameeyes@gentoo.org>
+       * src/fcfreetype.c (FcFreeTypeCharIndex):
+
+       Pass the buck; make fontconfig not crash on pango badness.
+
 2006-02-21  Patrick Lam  <plam@mit.edu>
        * conf.d/10-fonts-persian.conf:
 
index de20fd7..e3c5ef2 100644 (file)
@@ -2312,6 +2312,10 @@ FcFreeTypeCharIndex (FT_Face face, FcChar32 ucs4)
     int                    p;
 
     initial = 0;
+
+    if (!face)
+        return 0;
+
     /*
      * Find the current encoding
      */