diff --git a/src/rrd_tune.c b/src/rrd_tune.c
index 94d9293081e31f15ed336639030c5ba92e8f6e22..7e2ac91eeb25deb479c6b6ae91a5a5f0f1ad2314 100644 (file)
--- a/src/rrd_tune.c
+++ b/src/rrd_tune.c
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){