From 1f735ada8d62fd34e8a574fb4ddf068fc198e7ac 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@800 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_graph.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/program/src/rrd_graph.c b/program/src/rrd_graph.c index f8a52e0c..e922814e 100644 --- a/program/src/rrd_graph.c +++ b/program/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