summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0478fc7)
raw | patch | inline | side by side (parent: 0478fc7)
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) |
program/src/rrd_create.c | patch | blob | history |
index d9ab8f484f63addba1209fbe2cadb06c4016af7e..186b3b40fa6e92818e759b0e63ecc998363327c6 100644 (file)
--- a/program/src/rrd_create.c
+++ b/program/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;