From: Tobias Oetiker Date: Thu, 6 Nov 2014 11:19:43 +0000 (+0100) Subject: only look at gdp content if we have a gdp X-Git-Tag: v1.5.0-rc1~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=edaf4a2bef4f0e44f568e0f78e9d1db29e670b05;p=thirdparty%2Frrdtool-1.x.git only look at gdp content if we have a gdp --- 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);