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
diff --git a/ChangeLog b/ChangeLog
index cc46bf9..80674cd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jan 25 20:59:20 CET 2004 Daniel Veillard <daniel@veillard.com>
+
+ * python/libxml.c: applied patch from Frederic Peters
+ fixing the wrong arg order in xpath callback in bug #130980
+
Sun Jan 25 20:52:09 CET 2004 Daniel Veillard <daniel@veillard.com>
* xinclude.c: fixing #130453 XInclude element with no href attribute
diff --git a/python/libxml.c b/python/libxml.c
index dd66d86..225078a 100644
--- a/python/libxml.c
+++ b/python/libxml.c
@@ -1819,7 +1819,7 @@
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);