reset optind opterr inside the function calls ...
[rrdtool.git] / src / rrd_tune.c
index 94d9293..7e2ac91 100644 (file)
@@ -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){