had to fix generation and rebuild. the testapi found a bug in the last
* gentest.py testapi.c: had to fix generation and rebuild.
* valid.c: the testapi found a bug in the last code of course !
Daniel
diff --git a/valid.c b/valid.c
index 5abdc92..e73bd65 100644
--- a/valid.c
+++ b/valid.c
@@ -1547,8 +1547,9 @@
* and flag it by setting a special parent value
* so the parser doesn't unallocate it.
*/
- if ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) ||
- (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1)) {
+ if ((ctxt != NULL) &&
+ ((ctxt->finishDtd == XML_CTXT_FINISH_DTD_0) ||
+ (ctxt->finishDtd == XML_CTXT_FINISH_DTD_1))) {
ret->content = content;
if (content != NULL)
content->parent = (xmlElementContentPtr) 1;