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.
This commit is contained in:
Keith Packard 2006-09-04 12:46:01 -07:00
parent a04ac99f0f
commit 9a9fd975a1
1 changed files with 2 additions and 0 deletions

View File

@ -545,6 +545,8 @@ FcTypecheckValue (FcConfigParse *parse, FcType value, FcType type)
if ((value == FcTypeLangSet && type == FcTypeString) || if ((value == FcTypeLangSet && type == FcTypeString) ||
(value == FcTypeString && type == FcTypeLangSet)) (value == FcTypeString && type == FcTypeLangSet))
return; return;
if (type == (FcType) -1)
return;
FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s", FcConfigMessage (parse, FcSevereWarning, "saw %s, expected %s",
FcTypeName (value), FcTypeName (type)); FcTypeName (value), FcTypeName (type));
} }