summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2301e7b)
raw | patch | inline | side by side (parent: 2301e7b)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 22 Jul 2008 15:15:44 +0000 (15:15 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Tue, 22 Jul 2008 15:15:44 +0000 (15:15 +0000) |
git-svn-id: svn://svn.oetiker.ch/rrdtool/branches/1.2/program@1445 a5681a0c-68f1-0310-ab6d-d61299d08faa
src/rrd_create.c | patch | blob | history |
diff --git a/src/rrd_create.c b/src/rrd_create.c
index d9ab8f484f63addba1209fbe2cadb06c4016af7e..186b3b40fa6e92818e759b0e63ecc998363327c6 100644 (file)
--- a/src/rrd_create.c
+++ b/src/rrd_create.c
break;
default:
rrd.rra_def[rrd.stat_head->rra_cnt].pdp_cnt = atoi(token);
+ if (atoi(token) < 1)
+ rrd_set_error("Invalid step: must be >= 1");
break;
}
break;