summaryrefslogtreecommitdiffstats
path: root/generic/tclInterp.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-11-18 21:00:45 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-11-18 21:00:45 (GMT)
commitb2e8fcd688f767931f85ced3ae6a245806a86bca (patch)
treee6fb96b92ad8640eb3498b1db3dae46ba306226e /generic/tclInterp.c
parentf72504c3281795246a5bfa6ddea712e115adc028 (diff)
downloadtcl-b2e8fcd688f767931f85ced3ae6a245806a86bca.zip
tcl-b2e8fcd688f767931f85ced3ae6a245806a86bca.tar.gz
tcl-b2e8fcd688f767931f85ced3ae6a245806a86bca.tar.bz2
* tests/interp.test (interp-36.*): [interp bgerror] tests.
* generic/tclInterp.c: Corrected [interp bgerror] error messages.
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r--generic/tclInterp.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c
index 8f968ba..21571d4 100644
--- a/generic/tclInterp.c
+++ b/generic/tclInterp.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: tclInterp.c,v 1.50 2004/11/18 19:22:12 dgp Exp $
+ * RCS: @(#) $Id: tclInterp.c,v 1.51 2004/11/18 21:00:50 dgp Exp $
*/
#include "tclInt.h"
@@ -2029,10 +2029,8 @@ SlaveBgerror(interp, slaveInterp, objc, objv)
if (objc) {
int length;
- if (TCL_ERROR == Tcl_ListObjLength(interp, objv[0], &length)) {
- return TCL_ERROR;
- }
- if (length < 1) {
+ if (TCL_ERROR == Tcl_ListObjLength(NULL, objv[0], &length)
+ || (length < 1)) {
Tcl_AppendResult(interp, "cmdPrefix must be list of length >= 1",
(char *) NULL);
return TCL_ERROR;