X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_fetch.c;h=404f30f1205b759b8d1e5babb65bec2c3505c3eb;hp=c5a73a336f6232ff8b89d2961d6502758bc7b030;hb=0dc5d6d50c0d95ba4f04b656358b26518d4ce854;hpb=35f5945e114df7324be00de01bcde77e096a2373 diff --git a/src/rrd_fetch.c b/src/rrd_fetch.c index c5a73a3..404f30f 100644 --- a/src/rrd_fetch.c +++ b/src/rrd_fetch.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2.0 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.9 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);