diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-10-31 10:36:03 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-10-31 10:36:03 +0000 |
commit | 157fee019d02e1ba4ed377ea21172b67f479241b (patch) | |
tree | a4d39c614ae74410bfb87a021037255187b3de95 /python/libxml.c | |
parent | 8a0a633ceaaf93faae6900d3c13d6328f4f06a9d (diff) | |
download | libxml2-157fee019d02e1ba4ed377ea21172b67f479241b.tar.gz |
previous fix for #124044 was broken, correct fix provided. fix
* python/libxml.c: previous fix for #124044 was broken, correct
fix provided.
* HTMLparser.c parser.c parserInternals.c xmlIO.c: fix xmlStopParser()
and the error handlers to address #125877
Daniel
Diffstat (limited to 'python/libxml.c')
-rw-r--r-- | python/libxml.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/python/libxml.c b/python/libxml.c index 2ae18560..bf4c652c 100644 --- a/python/libxml.c +++ b/python/libxml.c @@ -1644,12 +1644,12 @@ libxml_xmlFreeTextReader(ATTRIBUTE_UNUSED PyObject *self, PyObject *args) { xmlTextReaderErrorFunc f; void *arg; - if (self == NULL) { + if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeTextReader", &pyobj_reader)) + return(NULL); + if (!PyCObject_Check(pyobj_reader)) { Py_INCREF(Py_None); return(Py_None); } - if (!PyArg_ParseTuple(args, (char *)"O:xmlFreeTextReader", &pyobj_reader)) - return(NULL); reader = (xmlTextReaderPtr) PyxmlTextReader_Get(pyobj_reader); if (reader == NULL) { Py_INCREF(Py_None); |