fixed an untested pointer dereference and a & vs && Daniel
* xmlschemas.c: fixed an untested pointer dereference and a & vs &&
Daniel
diff --git a/xmlschemas.c b/xmlschemas.c
index c0d4904..d4d431d 100644
--- a/xmlschemas.c
+++ b/xmlschemas.c
@@ -13326,7 +13326,9 @@
* introduce the correct usage of contentType to store the
* facets in!
*/
- if (item->baseType->flags && XML_SCHEMAS_TYPE_FACETSNEEDVALUE)
+ if ((item->baseType != NULL) &&
+ (item->baseType->flags &
+ XML_SCHEMAS_TYPE_FACETSNEEDVALUE))
item->flags |= XML_SCHEMAS_TYPE_FACETSNEEDVALUE;
else {
xmlSchemaFacetLinkPtr cur;