From db40632e1c55e32f618d14f75a8698d87cc6b974 Mon Sep 17 00:00:00 2001 From: oetiker Date: Fri, 6 May 2005 15:24:27 +0000 Subject: [PATCH] if stacking on nothing we should not try to figure out WHAT we stacked on since this will result in a segfault ... -- Alex van den Bogaerdt git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@488 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rrd_graph.c b/src/rrd_graph.c index a5f87db..01e174c 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -2482,7 +2482,7 @@ graph_paint(image_desc_t *im, char ***calcpr) continue; } ytop = ytr(im,im->gdes[i].p_data[ii]); - if ( im->gdes[i].stack ) { + if ( lastgdes && im->gdes[i].stack ) { ybase = ytr(im,lastgdes->p_data[ii]); } else { ybase = ytr(im,areazero); -- 2.30.2