From: Peter A. Bigot Date: Mon, 17 Feb 2014 23:24:25 +0000 (-0600) Subject: rrd_graph: initialize new data member (fix #441) X-Git-Tag: v1.4.9~23^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e21da101402ffe37281e2df24e693aaf723d3f38;p=thirdparty%2Frrdtool-1.x.git rrd_graph: initialize new data member (fix #441) primary_axis_format was added to image_desc_t but rrd_graph_init was not updated to initialize it, resulting in this error when the garbage values were used as axis labels: (process:24893): Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text() --- diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 9771535c..3468ea95 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4153,6 +4153,7 @@ void rrd_graph_init( im->second_axis_shift = 0; /* no shift by default */ im->second_axis_legend[0] = '\0'; im->second_axis_format[0] = '\0'; + im->primary_axis_format[0] = '\0'; im->yorigin = 0; im->yOriginLegend = 0; im->yOriginLegendY = 0;