summaryrefslogtreecommitdiffstats
path: root/generic/tclCompile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-05 13:14:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-05 13:14:45 (GMT)
commitb41a44e3942c841677cdcf7cd46be77c5c27ab08 (patch)
treea95eae27a774d5596a43ac7843d8d876f6f12da6 /generic/tclCompile.c
parent68caa10ca3562292a830860aaa37289795fe68b7 (diff)
downloadtcl-b41a44e3942c841677cdcf7cd46be77c5c27ab08.zip
tcl-b41a44e3942c841677cdcf7cd46be77c5c27ab08.tar.gz
tcl-b41a44e3942c841677cdcf7cd46be77c5c27ab08.tar.bz2
Some patch clean-up, no change in functionality
Diffstat (limited to 'generic/tclCompile.c')
-rw-r--r--generic/tclCompile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclCompile.c b/generic/tclCompile.c
index 4e4ead6..ee36bff 100644
--- a/generic/tclCompile.c
+++ b/generic/tclCompile.c
@@ -1793,8 +1793,8 @@ CompileCmdLiteral(
}
bytes = Tcl_GetStringFromObj(cmdObj, &numBytes);
- cmdLitIdx = TclRegisterNewCmdLiteral(envPtr, bytes, numBytes, extraLiteralFlags);
-
+ cmdLitIdx = TclRegisterLiteral(envPtr, (char *)bytes, numBytes, extraLiteralFlags|LITERAL_CMD_NAME);
+
if (cmdPtr) {
TclSetCmdNameObj(interp, TclFetchLiteral(envPtr, cmdLitIdx), cmdPtr);
}