diff --git a/src/rrd_graph.c b/src/rrd_graph.c
index dc21548dba90325bd58a9b62f7c9f52c23b66928..5efe82753acd4ac28e973b182e95e827b411b4b4 100644 (file)
--- a/src/rrd_graph.c
+++ b/src/rrd_graph.c
rrd_graph(int argc, char **argv, char ***prdata, int *xsize, int *ysize, FILE *stream, double *ymin, double *ymax)
{
image_desc_t im;
-
rrd_graph_init(&im);
im.graphhandle = stream;
long long_tmp;
struct rrd_time_value start_tv, end_tv;
gfx_color_t color;
+ optind = 0; opterr = 0; /* initialize getopt */
parsetime("end-24h", &start_tv);
parsetime("now", &end_tv);