]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
only look at gdp content if we have a gdp
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 6 Nov 2014 11:19:43 +0000 (12:19 +0100)
committerTobias Oetiker <tobi@oetiker.ch>
Thu, 6 Nov 2014 11:19:43 +0000 (12:19 +0100)
src/rrd_graph_helper.c

index 74bbebed35dff214b3b17c585a9792c07977e44f..9793dcda448402e2a2af63f399b238e856f735f6 100644 (file)
@@ -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);