diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c
index 6618c4b0a046c2e78ac06d3859bae185cdd24ccc..7111bbf0eb335f77632c1faa24c85427f9e914b5 100644 (file)
--- a/src/rrd_fetch.c
+++ b/src/rrd_fetch.c
/*****************************************************************************
- * RRDtool 1.2rc7 Copyright by Tobi Oetiker, 1997-2005
+ * RRDtool 1.2.8 Copyright by Tobi Oetiker, 1997-2005
*****************************************************************************
* rrd_fetch.c read date from an rrd to use for further processing
*****************************************************************************
struct rrd_time_value start_tv, end_tv;
char *parsetime_error = NULL;
+ optind = 0; opterr = 0; /* initialize getopt */
/* init start and end time */
parsetime("end-24h", &start_tv);