diff options
author | dgp <dgp@noemail.net> | 2003-03-12 17:52:35 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2003-03-12 17:52:35 (GMT) |
commit | 1d254aba4fcd734d2feb4003e722cbbbf85a2d89 (patch) | |
tree | 3baa29a98191a0ae41a93265362d348a228b00ce /generic/tclInterp.c | |
parent | d694dd4bb684276ccd987760b23d95021a4827da (diff) | |
download | tcl-1d254aba4fcd734d2feb4003e722cbbbf85a2d89.zip tcl-1d254aba4fcd734d2feb4003e722cbbbf85a2d89.tar.gz tcl-1d254aba4fcd734d2feb4003e722cbbbf85a2d89.tar.bz2 |
* generic/tclInterp.c (Tcl_InterpObjCmd): Corrected option
parsing beyond objc for [interp create --]. Thanks to
Marco Maggi. [Bug 702383]
FossilOrigin-Name: 012f9765e22470e0cc23654df86da9398adc1260
Diffstat (limited to 'generic/tclInterp.c')
-rw-r--r-- | generic/tclInterp.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/generic/tclInterp.c b/generic/tclInterp.c index c0af431..b8f1fe2 100644 --- a/generic/tclInterp.c +++ b/generic/tclInterp.c @@ -9,7 +9,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.20 2002/11/27 02:54:00 hobbs Exp $ + * RCS: @(#) $Id: tclInterp.c,v 1.21 2003/03/12 17:52:36 dgp Exp $ */ #include "tclInt.h" @@ -461,7 +461,9 @@ Tcl_InterpObjCmd(clientData, interp, objc, objv) Tcl_WrongNumArgs(interp, 2, objv, "?-safe? ?--? ?path?"); return TCL_ERROR; } - slavePtr = objv[i]; + if (i < objc) { + slavePtr = objv[i]; + } } buf[0] = '\0'; if (slavePtr == NULL) { |