1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

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
This commit is contained in:
Daniel Veillard
2004-01-25 20:01:35 +00:00
parent 03c2f0a41d
commit 05349ab2f6
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);