mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
change a small bit in the way valididy error messages get initialized
* parserInternals.c: change a small bit in the way valididy error messages get initialized * python/TODO python/libxml.c python/libxml2-python-api.xml python/libxml2class.txt python/libxml_wrap.h python/types.c: added some memory debugging to track leaks at the libxml2 level * python/tests/*.py: changed all tests to check for leaks, there is just one left in XPath extension registrations. daniel
This commit is contained in:
@ -2257,16 +2257,14 @@ xmlInitParserCtxt(xmlParserCtxtPtr ctxt)
|
||||
sax->ignorableWhitespace = ignorableWhitespace;
|
||||
|
||||
ctxt->vctxt.userData = ctxt;
|
||||
ctxt->vctxt.error = xmlParserValidityError;
|
||||
ctxt->vctxt.warning = xmlParserValidityWarning;
|
||||
if (ctxt->validate) {
|
||||
ctxt->vctxt.error = xmlParserValidityError;
|
||||
if (xmlGetWarningsDefaultValue == 0)
|
||||
ctxt->vctxt.warning = NULL;
|
||||
else
|
||||
ctxt->vctxt.warning = xmlParserValidityWarning;
|
||||
ctxt->vctxt.nodeMax = 0;
|
||||
} else {
|
||||
ctxt->vctxt.error = NULL;
|
||||
ctxt->vctxt.warning = NULL;
|
||||
}
|
||||
ctxt->replaceEntities = xmlSubstituteEntitiesDefaultValue;
|
||||
ctxt->record_info = 0;
|
||||
|
Reference in New Issue
Block a user