X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_cgi.c;h=eab341440871e42b15459f565adc0e2fe08ab4d1;hb=37329a5f991870e8f47c8a52f6dd594fef813de6;hp=b3cf93925ac3a72b9077ff387d5ac9f31ec8c425;hpb=f439b204fb1481edd6a777a3b172ccd722b5b6ed;p=rrdtool.git diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index b3cf939..eab3414 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.2rc5 Copyright by Tobi Oetiker, 1997-2005 + * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrd_cgi.c RRD Web Page Generator *****************************************************************************/ @@ -266,6 +266,8 @@ int main(int argc, char *argv[]) { #ifdef MUST_DISABLE_FPMASK fpsetmask(0); #endif + optind = 0; opterr = 0; /* initialize getopt */ + /* what do we get for cmdline arguments? for (i=0;i"; } - optind=0; /* reset gnu getopt */ - opterr=0; /* reset gnu getopt */ calfree(); if( rrd_graph(argc+1, args-1, &calcpr, &xsize, &ysize,NULL,&ymin,&ymax) != -1 ) { return stralloc(calcpr[0]);