From edaf4a2bef4f0e44f568e0f78e9d1db29e670b05 Mon Sep 17 00:00:00 2001 From: Tobias Oetiker Date: Thu, 6 Nov 2014 12:19:43 +0100 Subject: [PATCH] only look at gdp content if we have a gdp --- src/rrd_graph_helper.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index 74bbebed..9793dcda 100644 --- a/src/rrd_graph_helper.c +++ b/src/rrd_graph_helper.c @@ -878,10 +878,12 @@ int parse_def(enum gf_en gf,parsedargs_t*pa,image_desc_t *const im){ |PARSE_END |PARSE_REDUCE ); + if (!gdp) { return 1;} + if (gdp->step == 0){ gdp->step = im->step; /* initialize with image wide step */ } - if (!gdp) { return 1;} + /* debugging output */ dprintf("=================================\n"); dprintf("DEF : %s\n",pa->arg_orig); -- 2.47.3