From 9a9fd975a1330e21f0184cdb237cfb2a2f19c098 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 4 Sep 2006 12:46:01 -0700 Subject: [PATCH] Can't typecheck values for objects with no known type. Objects that aren't part of the built-in object list don't have predefined types, so we can't typecheck them. --- src/fcxml.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fcxml.c b/src/fcxml.c index d91e522..441e6de 100644 --- a/src/fcxml.c +++ b/src/fcxml.c @@ -545,6 +545,8 @@ FcTypecheckValue (FcConfigParse *parse, FcType value, FcType type) if ((value == FcTypeLangSet && type == FcTypeString) || (value == FcTypeString && type == FcTypeLangSet)) return; + if (type == (FcType) -1) + return; FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s", FcTypeName (value), FcTypeName (type)); } -- 2.39.5