From: oetiker Date: Tue, 15 Aug 2006 05:44:54 +0000 (+0000) Subject: catch empty XXXX: commands in graph X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=bb98c6e87fd67b9efb280d0e8db5aa52ee55c88e;p=rrdtool-all.git catch empty XXXX: commands in graph git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2@879 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/program/src/rrd_graph_helper.c b/program/src/rrd_graph_helper.c index b171f84c..793163c9 100644 --- a/program/src/rrd_graph_helper.c +++ b/program/src/rrd_graph_helper.c @@ -133,6 +133,10 @@ rrd_parse_find_gf(const char *const line, unsigned int *const eaten, graph_desc_ rrd_set_error("Malformed '%s' command in line '%s'\n",&line[*eaten],line); return 1; } + if (line[*eaten] == '\0') { + rrd_set_error("Expected some arguments after '%s'\n",line); + return 1; + } return 0; }