diff options
| author | dgp@users.sourceforge.net <dgp> | 2003-03-12 17:51:30 (GMT) |
|---|---|---|
| committer | dgp@users.sourceforge.net <dgp> | 2003-03-12 17:51:30 (GMT) |
| commit | c734d69f8a297d5e45064eb6ea54270914ca8f99 (patch) | |
| tree | 5401d20e4b3dc7f8c51a51287b762d29ee437700 /generic/tclInterp.c | |
| parent | d9bfe395510fead4e140b7bf72f86ca7fe6f1a1e (diff) | |
| download | tcl-c734d69f8a297d5e45064eb6ea54270914ca8f99.zip tcl-c734d69f8a297d5e45064eb6ea54270914ca8f99.tar.gz tcl-c734d69f8a297d5e45064eb6ea54270914ca8f99.tar.bz2 | |
* generic/tclInterp.c (Tcl_InterpObjCmd): Corrected option
parsing beyond objc for [interp create --]. Thanks to
Marco Maggi. [Bug 702383]
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..8d49791 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.20.2.1 2003/03/12 17:51:33 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) { |
