Commit d3210bc8 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

fixed an untested pointer dereference and a & vs && Daniel

* xmlschemas.c: fixed an untested pointer dereference and a & vs &&
Daniel
parent e125b316
Fri Jan 28 18:53:40 CET 2005 Daniel Veillard <daniel@veillard.com>
* xmlschemas.c: fixed an untested pointer dereference and a & vs &&
Fri Jan 28 18:37:18 CET 2005 Daniel Veillard <daniel@veillard.com>
 
* xmlreader.c: implementation of xmlTextReaderReadString by
......
......@@ -13326,7 +13326,9 @@ xmlSchemaTypeFixup(xmlSchemaTypePtr item,
* 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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment