Code

avoid problems when building with VPATH set and --disable-perl
[rrdtool.git] / src / rrd_first.c
index 21cdbdf2b1b2815deeb6321a52901f4e0867e4f7..9414b0a6010f242038e9ed729fa562a30ef84aaf 100644 (file)
@@ -1,5 +1,5 @@
 /*****************************************************************************
- * RRDtool 1.2rc7  Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.9  Copyright by Tobi Oetiker, 1997-2005
  *****************************************************************************
  * rrd_first Return
  *****************************************************************************
@@ -14,6 +14,7 @@ rrd_first(int argc, char **argv)
 {
     int target_rraindex=0;
     char *endptr;
+    optind = 0; opterr = 0;  /* initialize getopt */
 
     while (1){
         static struct option long_options[] =