aboutsummaryrefslogtreecommitdiffstats
path: root/xmlschemastypes.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2005-03-16 21:55:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2005-03-16 21:55:35 +0000
commitcc5e2330ef2432493afce6566d3651195366d822 (patch)
tree9a605e10c8f021757c5d66d8190d3effa360f8b3 /xmlschemastypes.c
parent9dbb0ceacaff0e59e4f3085387c4a44d6dbd14e5 (diff)
downloadandroid_external_libxml2-cc5e2330ef2432493afce6566d3651195366d822.tar.gz
android_external_libxml2-cc5e2330ef2432493afce6566d3651195366d822.tar.bz2
android_external_libxml2-cc5e2330ef2432493afce6566d3651195366d822.zip
more debug messages from Matthew Burgess xmlSchemaValidateLengthFacet API
* xmlschemas.c: more debug messages from Matthew Burgess * xmlschemastypes.c: xmlSchemaValidateLengthFacet API missing check. Daniel
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));