X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_create.c;h=027132c7c78a74e58d353dd47878d1966b9bb1e1;hb=b244c918dd034a4951e2318140b1d4ef132b6657;hp=5eac3600952d14684146aae0625df6c27ec53617;hpb=a9e69acbc184063dcc0eda6a250ee1b7ae1cbb47;p=rrdtool.git diff --git a/src/rrd_create.c b/src/rrd_create.c index 5eac360..027132c 100644 --- a/src/rrd_create.c +++ b/src/rrd_create.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.13 Copyright by Tobi Oetiker, 1997-2006 + * RRDtool 1.2.15 Copyright by Tobi Oetiker, 1997-2006 ***************************************************************************** * rrd_create.c creates new rrds *****************************************************************************/ @@ -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);