]> git.wh0rd.org - fontconfig.git/blobdiff - src/fccfg.c
Eliminate some compiler warnings, avoid seg fault when matching missing
[fontconfig.git] / src / fccfg.c
index 65a5728b7fbc375fa9a47f8df68176e0174e3485..b5a9ade5d80014cf24559fc600b1e93e78462a46 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.7 2002/05/29 08:21:33 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.8 2002/06/02 19:51:36 keithp Exp $
  *
  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -1158,7 +1158,7 @@ FcConfigSubstitute (FcConfig      *config,
                 * If there was a test, then replace the matched
                 * value with the new list of values
                 */
-               if (t)
+               if (t && st[i].elt)
                {
                    FcValueList *thisValue = st[i].value;
                    FcValueList *nextValue = thisValue ? thisValue->next : 0;