X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Frrd_cgi.c;h=a190ffb8e7ad3b89d133369f768c65efda521425;hb=ab384eb6dac85f5f57dabcfc16114fcaf79d5e94;hp=9f8ef5e0a8b4f316dde0dd0020679b548b57fec8;hpb=8dc9422c88e310e234914d965592a25840c84c1b;p=rrdtool.git diff --git a/src/rrd_cgi.c b/src/rrd_cgi.c index 9f8ef5e..a190ffb 100644 --- a/src/rrd_cgi.c +++ b/src/rrd_cgi.c @@ -1,5 +1,5 @@ /***************************************************************************** - * RRDtool 1.1.x Copyright Tobias Oetiker, 1997 - 2004 + * RRDtool 1.2.1 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]);