summaryrefslogtreecommitdiff
path: root/python/libxml.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-10-31 10:36:03 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-10-31 10:36:03 +0000
commit157fee019d02e1ba4ed377ea21172b67f479241b (patch)
treea4d39c614ae74410bfb87a021037255187b3de95 /python/libxml.c
parent8a0a633ceaaf93faae6900d3c13d6328f4f06a9d (diff)
downloadlibxml2-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.c6
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);