X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=54c21cc1c5eeb60d94ce44084076725795fdcf30;hb=2c188938780b23a4abc14cb70268580ff5b6daca;hp=533575bbb172101b12ecfd5b5c2f2fca3f3431e9;hpb=0f399ee8cbe875b2831ea2870e60ee17800d811d;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index 533575b..54c21cc 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2rc2 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.1 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_fetch.c read date from an rrd to use for further processing ***************************************************************************** @@ -75,6 +75,7 @@ rrd_fetch(int argc, 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);