projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't panic if the user forgets to specify the name of the rrd file
[rrdtool.git]
/
src
/
rrd_create.c
diff --git
a/src/rrd_create.c
b/src/rrd_create.c
index
5eac360
..
46006ea
100644
(file)
--- a/
src/rrd_create.c
+++ b/
src/rrd_create.c
@@
-78,7
+78,10
@@
rrd_create(int argc, char **argv)
return(-1);
}
}
-
+ if (optind == argc) {
+ rrd_set_error("what is the name of the rrd file you want to create?");
+ return -1;
+ }
rc = rrd_create_r(argv[optind],
pdp_step, last_up,
argc - optind - 1, argv + optind + 1);