summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2021-03-18 21:17:46 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2021-03-18 21:17:46 (GMT)
commite6d6e2962de378b019acce96758ea25fb4566243 (patch)
tree3cc118002d35c677f1b5b81d7ffba6a413151e3e
parent8390478dbf758e04f04223c4db37e62c1ca1d519 (diff)
downloadtcl-e6d6e2962de378b019acce96758ea25fb4566243.zip
tcl-e6d6e2962de378b019acce96758ea25fb4566243.tar.gz
tcl-e6d6e2962de378b019acce96758ea25fb4566243.tar.bz2
Delete some useless code. Was only place where we fed an uncontrolled value to %f, and it was actually a conversion we didn't need to do at all.
-rw-r--r--generic/tclIndexObj.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/generic/tclIndexObj.c b/generic/tclIndexObj.c
index 7e23931..d7dfb71 100644
--- a/generic/tclIndexObj.c
+++ b/generic/tclIndexObj.c
@@ -1328,7 +1328,6 @@ PrintUsage(
int width, numSpaces;
#define NUM_SPACES 20
static const char spaces[] = " ";
- char tmp[TCL_DOUBLE_SPACE];
Tcl_Obj *msg;
/*
@@ -1378,7 +1377,6 @@ PrintUsage(
case TCL_ARGV_FLOAT:
Tcl_AppendPrintfToObj(msg, "\n\t\tDefault value: %g",
*((double *) infoPtr->dstPtr));
- sprintf(tmp, "%g", *((double *) infoPtr->dstPtr));
break;
case TCL_ARGV_STRING: {
char *string = *((char **) infoPtr->dstPtr);