X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=ab7c45654a18947921a344514b7ffbddc4aef537;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=d4c89f9f3c61b23c82077304a8b386097d6181ca;hpb=d828f3eccac8dbad7bfc14812e406377669baaa4;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index d4c89f9..ab7c456 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2002 + * RRDtool 1.2.6 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);