diff options
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r-- | xmlschemastypes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xmlschemastypes.c b/xmlschemastypes.c index b08012af..159ad2ac 100644 --- a/xmlschemastypes.c +++ b/xmlschemastypes.c @@ -4688,6 +4688,8 @@ xmlSchemaValidateLengthFacet(xmlSchemaTypePtr type, xmlSchemaValPtr val, unsigned long *length) { + if (type == NULL) + return(-1); return (xmlSchemaValidateLengthFacetInternal(facet, type->builtInType, value, val, length, XML_SCHEMA_WHITESPACE_UNKNOWN)); |