X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=src%2Ffcxml.c;h=441e6dedf67e55a66915b926c839591c3a3bf79b;hb=9a9fd975a1330e21f0184cdb237cfb2a2f19c098;hp=d91e52275161bab71913ac24bb3c12b0e6b44e4c;hpb=a04ac99f0f3e487c7611772442727a6eb4f44393;p=fontconfig.git 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)); }