From: Tobias Oetiker Date: Tue, 15 Aug 2006 05:44:54 +0000 (+0000) Subject: catch empty XXXX: commands in graph X-Git-Tag: 1.2.16~62 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e9d426d910b5e1f0e312a492c245e3ec71f551a;p=thirdparty%2Frrdtool-1.x.git catch empty XXXX: commands in graph git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@879 a5681a0c-68f1-0310-ab6d-d61299d08faa --- diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index b171f84c..793163c9 100644 --- a/src/rrd_graph_helper.c +++ b/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; }