Code

fix spaceing ... more space for the title and more space the the left of the yaxis...
[rrdtool-all.git] / program / src / rrd_update.c
index a67a93a12816f9449a7675cf6b6505b7721fdee3..11d92bb58af9acc732d2b2ec63357b65a2f3a837 100644 (file)
@@ -109,6 +109,7 @@ info_t *rrd_update_v(int argc, char **argv)
     char             *template = NULL;          
        info_t *result = NULL;
        infoval rc;
+    optind = 0; opterr = 0;  /* initialize getopt */
 
     while (1) {
                static struct option long_options[] =
@@ -155,6 +156,7 @@ rrd_update(int argc, char **argv)
 {
     char             *template = NULL;          
     int rc;
+    optind = 0; opterr = 0;  /* initialize getopt */
 
     while (1) {
                static struct option long_options[] =