X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_fetch.c;h=958cec02b6c5f8c457816e11082b1342c1e40e8d;hb=96db36a7a6ff75d2fc1353e45434a7f6b1db801b;hp=d5fe7ed6ae89155fe1e3e4ccda4a17877fc4607d;hpb=c0be57bdf5f3fef44227f2e0acf6a7a74c1a7620;p=rrdtool.git diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index d5fe7ed..958cec0 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2rc8 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.7 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);