X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=bindings%2Ftcl%2Ftclrrd.c;h=92616de259cf85036f4d04906bcc59e71f93ba51;hb=8cb9661bb4befb4bcd4fc8a23ed0e2c3821126e7;hp=3cc171151ff22acdf7d7fb14702358e7ad9841a0;hpb=375995188dfc9e69f3884e8d4631809d137cc5e8;p=rrdtool.git diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c index 3cc1711..92616de 100644 --- a/bindings/tcl/tclrrd.c +++ b/bindings/tcl/tclrrd.c @@ -23,8 +23,7 @@ extern int __getopt_initialized; /* * some rrd_XXX() functions might modify the argv strings passed to it. - * Furthermore, they use getopt() without initializing getopt's optind - * variable themselves. Hence, we need to do some preparation before + * Hence, we need to do some preparation before * calling the rrd library functions. */ static char ** getopt_init(argc, argv) @@ -34,8 +33,6 @@ static char ** getopt_init(argc, argv) char **argv2; int i; - optind = 0; - argv2 = calloc(argc, sizeof(char *)); for (i = 0; i < argc; i++) { argv2[i] = strdup(argv[i]);