File bugzilla-246783-do-not-crash-when-config-files-contain-broken-stuff.patch of Package fontconfig

Index: fontconfig-2.7.0/src/fcxml.c
===================================================================
--- fontconfig-2.7.0.orig/src/fcxml.c
+++ fontconfig-2.7.0/src/fcxml.c
@@ -539,6 +539,9 @@ FcTypecheckExpr (FcConfigParse *parse, F
 {
     const FcObjectType	*o;
     const FcConstant	*c;
+
+    if (!expr)
+	return;
     
     /* If parsing the expression failed, some nodes may be NULL */
     if (!expr)