aboutsummaryrefslogtreecommitdiffstats
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'xmlschemastypes.c')
-rw-r--r--xmlschemastypes.c2
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));