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.5.0-rc1~135 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=154290c0015b6ee8e8867d89666ab2d0a008d9ff;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 0bc5dbdb..9662231b 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -4347,6 +4347,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;