From: Thomas Gambier Date: Tue, 6 Mar 2018 14:10:23 +0000 (+0100) Subject: Fix rrdtool.graph python binding X-Git-Tag: v1.7.1~61^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F879%2Fhead;p=thirdparty%2Frrdtool-1.x.git Fix rrdtool.graph python binding It was failing with 'munmap_chunk(): invalid pointer' error in python 3.6.3 --- diff --git a/bindings/python/rrdtoolmodule.c b/bindings/python/rrdtoolmodule.c index eeefb581..9a11945d 100644 --- a/bindings/python/rrdtoolmodule.c +++ b/bindings/python/rrdtoolmodule.c @@ -595,7 +595,7 @@ _rrdtool_graph(PyObject *Py_UNUSED(self), PyObject *args) PyObject *ret; int xsize, ysize, i, status; double ymin, ymax; - char **calcpr; + char **calcpr = NULL; if (convert_args("graph", args, &rrdtool_argv, &rrdtool_argc) == -1) return NULL;