From 020af357b2bbdde2bddff6afcc2dbfe77595fae9 Mon Sep 17 00:00:00 2001 From: oetiker Date: Tue, 15 Aug 2006 05:44:54 +0000 Subject: [PATCH] catch empty XXXX: commands in graph git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@879 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_graph_helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/rrd_graph_helper.c b/src/rrd_graph_helper.c index b171f84..793163c 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; } -- 2.11.0