summaryrefslogtreecommitdiffstats
path: root/python/xml/py_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/xml/py_xml.c')
-rw-r--r--python/xml/py_xml.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/xml/py_xml.c b/python/xml/py_xml.c
index d2816ceb..28094126 100644
--- a/python/xml/py_xml.c
+++ b/python/xml/py_xml.c
@@ -46,6 +46,7 @@ PyObject *node_dump(PyObject *self, PyObject *args) {
PyObject *node_obj;
xmlChar *encoding;
int format;
+ xmlChar *ret;
if (CheckArgs(args, "OSI:node_dump")) {
if(!PyArg_ParseTuple(args, (char *) "Osi:node_dump",
@@ -54,10 +55,9 @@ PyObject *node_dump(PyObject *self, PyObject *args) {
}
else return NULL;
- lasso_node_dump(LassoNode_get(node_obj), encoding, format);
+ ret = lasso_node_dump(LassoNode_get(node_obj), encoding, format);
- Py_INCREF(Py_None);
- return (Py_None);
+ return (xmlCharPtr_wrap(ret));
}
PyObject *node_get_attr_value(PyObject *self, PyObject *args) {