one more fixup of error message reporting Daniel

* relaxng.c: one more fixup of error message reporting
Daniel
This commit is contained in:
Daniel Veillard 2003-03-31 22:13:33 +00:00
parent 5f1946ad7c
commit 7fe1f3a502
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Tue Apr 1 00:12:28 CEST 2003 Daniel Veillard <daniel@veillard.com>
* relaxng.c: one more fixup of error message reporting
Mon Mar 31 18:36:32 CEST 2003 Daniel Veillard <daniel@veillard.com>
* relaxng.c: more work on bug #109225, and fixed an uninitialized

View File

@ -8317,7 +8317,14 @@ xmlRelaxNGValidateState(xmlRelaxNGValidCtxtPtr ctxt,
tmp = xmlRelaxNGValidateDefinitionList(ctxt, define->content);
if (tmp != 0) {
ret = -1;
VALID_ERR2(XML_RELAXNG_ERR_CONTENTVALID, node->name);
if (ctxt->state == NULL) {
ctxt->state = oldstate;
VALID_ERR2(XML_RELAXNG_ERR_CONTENTVALID, node->name);
ctxt->state = NULL;
} else {
VALID_ERR2(XML_RELAXNG_ERR_CONTENTVALID, node->name);
}
}
}
if (ctxt->states != NULL) {