]> git.wh0rd.org - fontconfig.git/commitdiff
Check font edit value lists for empty dri-20020222-merge
authorKeith Packard <keithp@keithp.com>
Sun, 24 Feb 2002 01:23:35 +0000 (01:23 +0000)
committerKeith Packard <keithp@keithp.com>
Sun, 24 Feb 2002 01:23:35 +0000 (01:23 +0000)
src/fccfg.c

index 52d89ccab650f6c8f1f792f91d57bf23cd086e18..91373d39da3fc584df96b34d0bcf3d3172c3edba 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.2 2002/02/15 06:01:27 keithp Exp $
+ * $XFree86: xc/lib/fontconfig/src/fccfg.c,v 1.3 2002/02/19 08:33:23 keithp Exp $
  *
  * Copyright © 2000 Keith Packard, member of The XFree86 Project, Inc.
  *
@@ -849,7 +849,7 @@ FcConfigValues (FcPattern *p, FcExpr *e)
        l->value = FcConfigEvaluate (p, e);
        l->next  = 0;
     }
-    while (l->value.type == FcTypeVoid)
+    while (l && l->value.type == FcTypeVoid)
     {
        FcValueList     *next = l->next;