]> git.wh0rd.org - fontconfig.git/commitdiff
677. Fix a segfault in fontconfig (#A.1450, Keith Packard). xf-4_2_99_3
authorDavid Dawes <dawes@xfree86.org>
Sat, 21 Dec 2002 02:31:53 +0000 (02:31 +0000)
committerDavid Dawes <dawes@xfree86.org>
Sat, 21 Dec 2002 02:31:53 +0000 (02:31 +0000)
src/fccfg.c

index 8442f80a7322b36e9fcc58fa63e21473760411e5..446004f23530c01cf2c3456c02f4c2ae12cfae71 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.22 2002/08/22 18:53:22 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.23 2002/08/31 22:17:32 keithp Exp $
  *
  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -1141,7 +1141,11 @@ FcConfigSubstituteWithPat (FcConfig    *config,
                if ((t->kind == FcMatchFont || kind == FcMatchPattern) &&
                    !FcStrCmpIgnoreCase ((FcChar8 *) t->field, 
                                         (FcChar8 *) e->field))
+               {
+                   if (!st[i].elt)
+                       t = 0;
                    break;
+               }
            }
            switch (e->op) {
            case FcOpAssign: