summaryrefslogtreecommitdiffstats
path: root/generic/tclProc.c
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-19 23:02:12 (GMT)
committerhobbs <hobbs>1999-11-19 23:02:12 (GMT)
commit859fecd9de44d63b881d59a1fbabc2393375934c (patch)
tree345cc78e1ef8e23ebcbce12fde42f0fd64ebf484 /generic/tclProc.c
parent87d2bf889d8304b45521c802e42c7f90e13102c5 (diff)
downloadtcl-859fecd9de44d63b881d59a1fbabc2393375934c.zip
tcl-859fecd9de44d63b881d59a1fbabc2393375934c.tar.gz
tcl-859fecd9de44d63b881d59a1fbabc2393375934c.tar.bz2
* generic/tclProc.c: backed out change from 1999-11-18 as it
could affect return string from upvar as well.
Diffstat (limited to 'generic/tclProc.c')
-rw-r--r--generic/tclProc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/generic/tclProc.c b/generic/tclProc.c
index 901476a..aeb8d17 100644
--- a/generic/tclProc.c
+++ b/generic/tclProc.c
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclProc.c,v 1.21 1999/11/19 06:34:24 hobbs Exp $
+ * RCS: @(#) $Id: tclProc.c,v 1.22 1999/11/19 23:02:12 hobbs Exp $
*/
#include "tclInt.h"
@@ -502,8 +502,8 @@ TclGetFrame(interp, string, framePtrPtr)
}
if (level < 0) {
levelError:
- Tcl_AppendResult(interp, "bad level \"",
- (result ? string : "1"), "\"", (char *) NULL);
+ Tcl_AppendResult(interp, "bad level \"", string, "\"",
+ (char *) NULL);
return -1;
}
} else if (isdigit(UCHAR(*string))) { /* INTL: digit */
@@ -1135,7 +1135,7 @@ TclProcCompileProc(interp, procPtr, bodyPtr, nsPtr, description, procName)
if (result == TCL_ERROR) {
char buf[100 + TCL_INTEGER_SPACE];
- numChars = strlen(procName);
+ numChars = strlen(procName);
ellipsis = "";
if (numChars > 50) {
numChars = 50;