diff --git a/bindings/tcl/tclrrd.c b/bindings/tcl/tclrrd.c
index 3cc171151ff22acdf7d7fb14702358e7ad9841a0..92616de259cf85036f4d04906bcc59e71f93ba51 100644 (file)
--- a/bindings/tcl/tclrrd.c
+++ b/bindings/tcl/tclrrd.c
/*
* 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)
char **argv2;
int i;
- optind = 0;
-
argv2 = calloc(argc, sizeof(char *));
for (i = 0; i < argc; i++) {
argv2[i] = strdup(argv[i]);