X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_tune.c;h=7e2ac91eeb25deb479c6b6ae91a5a5f0f1ad2314;hb=d1fe50003e73e2772e9026f29c0ba658143dec7a;hp=94d9293081e31f15ed336639030c5ba92e8f6e22;hpb=35f5945e114df7324be00de01bcde77e096a2373;p=rrdtool.git diff --git a/src/rrd_tune.c b/src/rrd_tune.c index 94d9293..7e2ac91 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -61,6 +61,7 @@ rrd_tune(int argc, char **argv) double min; double max; char dst[DST_SIZE]; + optind = 0; opterr = 0; /* initialize getopt */ if(rrd_open(argv[1],&rrd_file,&rrd, RRD_READWRITE)==-1){