From 53b47bcd156b346cf565df188cdcf54d9497ee12 Mon Sep 17 00:00:00 2001 From: oetiker Date: Mon, 24 Apr 2006 15:14:10 +0000 Subject: [PATCH] make sure things are initialised ... git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@800 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index f8a52e0..e922814 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2781,7 +2781,9 @@ gdes_alloc(image_desc_t *im){ im->gdes[im->gdes_c-1].linewidth=0; im->gdes[im->gdes_c-1].debug=0; im->gdes[im->gdes_c-1].start=im->start; + im->gdes[im->gdes_c-1].start_orig=im->start; im->gdes[im->gdes_c-1].end=im->end; + im->gdes[im->gdes_c-1].end_orig=im->end; im->gdes[im->gdes_c-1].vname[0]='\0'; im->gdes[im->gdes_c-1].data=NULL; im->gdes[im->gdes_c-1].ds_namv=NULL; @@ -2794,6 +2796,8 @@ gdes_alloc(image_desc_t *im){ im->gdes[im->gdes_c-1].format[0]='\0'; im->gdes[im->gdes_c-1].rrd[0]='\0'; im->gdes[im->gdes_c-1].ds=-1; + im->gdes[im->gdes_c-1].cf_reduce=CF_AVERAGE; + im->gdes[im->gdes_c-1].cf=CF_AVERAGE; im->gdes[im->gdes_c-1].p_data=NULL; im->gdes[im->gdes_c-1].yrule=DNAN; im->gdes[im->gdes_c-1].xrule=0; -- 2.30.2