summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2018-09-07 14:24:49 (GMT)
committersebres <sebres@users.sourceforge.net>2018-09-07 14:24:49 (GMT)
commit9a15a1b58648809ffb208eaa00cd20af4784050d (patch)
tree0b5e9a8d926eb683682197dcf5956cc0e2841b67 /generic/tclProc.c
parent95db69f27b003d548813280a19d1b290332bf2ef (diff)
downloadtcl-9a15a1b58648809ffb208eaa00cd20af4784050d.zip
tcl-9a15a1b58648809ffb208eaa00cd20af4784050d.tar.gz
tcl-9a15a1b58648809ffb208eaa00cd20af4784050d.tar.bz2
small code review (duplicate code removed)
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index e51f5b3..232eb93 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -611,7 +611,7 @@ TclCreateProc(
procPtr->lastLocalPtr = localPtr;
}
localPtr->nextPtr = NULL;
- localPtr->nameLength = Tcl_NumUtfChars(argname, fieldValues[0]->length);
+ localPtr->nameLength = nameLength;
localPtr->frameIndex = i;
localPtr->flags = VAR_ARGUMENT;
localPtr->resolveInfo = NULL;