summaryrefslogtreecommitdiff
path: root/python/libxml.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2004-01-25 20:01:35 +0000
committerDaniel Veillard <veillard@src.gnome.org>2004-01-25 20:01:35 +0000
commit05349ab2f6995d33f06932aa3cc62cf420ce0477 (patch)
treef722b085f874db58fb4e0b048a54731f903bcf19 /python/libxml.c
parent03c2f0a41d11ce26510a601f8a0ef9afa6c9a828 (diff)
downloadlibxml2-05349ab2f6995d33f06932aa3cc62cf420ce0477.tar.gz
applied patch from Frederic Peters fixing the wrong arg order in xpath
* python/libxml.c: applied patch from Frederic Peters fixing the wrong arg order in xpath callback in bug #130980 Daniel
Diffstat (limited to 'python/libxml.c')
-rw-r--r--python/libxml.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/libxml.c b/python/libxml.c
index dd66d86f..225078a2 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -1819,7 +1819,7 @@ libxml_xmlXPathFuncCallback(xmlXPathParserContextPtr ctxt, int nargs)
list = PyTuple_New(nargs + 1);
PyTuple_SetItem(list, 0, libxml_xmlXPathParserContextPtrWrap(ctxt));
- for (i = 0; i < nargs; i++) {
+ for (i = nargs - 1; i >= 0; i--) {
obj = valuePop(ctxt);
cur = libxml_xmlXPathObjectPtrWrap(obj);
PyTuple_SetItem(list, i + 1, cur);