Code

csv plugin: set datadir null when free
[collectd.git] / src / pyconfig.c
index 258d31fb75bff8b0209c162c15ebf83deb34c569..b5c01aaf1d5481256bf872e6d078c6e4b74dc15c 100644 (file)
@@ -136,10 +136,10 @@ static PyObject *Config_repr(PyObject *s) {
        ret = PyObject_Str(self->key);
        CPY_SUBSTITUTE(PyObject_Repr, ret, ret);
        if (self->parent == NULL || self->parent == Py_None)
-               CPY_SUBSTITUTE(CPY_STRCAT, ret, root_prefix, ret);
+               CPY_STRCAT(&ret, root_prefix);
        else
-               CPY_SUBSTITUTE(CPY_STRCAT, ret, node_prefix, ret);
-       CPY_SUBSTITUTE(CPY_STRCAT, ret, ret, ending);
+               CPY_STRCAT(&ret, node_prefix);
+       CPY_STRCAT(&ret, ending);
        
        return ret;
 }