From 859fecd9de44d63b881d59a1fbabc2393375934c Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 19 Nov 1999 23:02:12 +0000 Subject: * generic/tclProc.c: backed out change from 1999-11-18 as it could affect return string from upvar as well. --- generic/tclProc.c | 8 ++++---- 1 file 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; -- cgit v0.12