]> git.wh0rd.org - fontconfig.git/commitdiff
Can't typecheck values for objects with no known type.
authorKeith Packard <keithp@neko.keithp.com>
Mon, 4 Sep 2006 19:46:01 +0000 (12:46 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Mon, 4 Sep 2006 19:46:01 +0000 (12:46 -0700)
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

index d91e52275161bab71913ac24bb3c12b0e6b44e4c..441e6dedf67e55a66915b926c839591c3a3bf79b 100644 (file)
@@ -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));
     }