From e21da101402ffe37281e2df24e693aaf723d3f38 Mon Sep 17 00:00:00 2001 From: "Peter A. Bigot" Date: Mon, 17 Feb 2014 17:24:25 -0600 Subject: [PATCH] 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() --- src/rrd_graph.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.2