diff options
author | dgp <dgp@users.sourceforge.net> | 2002-10-17 17:41:43 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2002-10-17 17:41:43 (GMT) |
commit | 15f0f765a5441cc7e8ad6b05238368f91ed0f8e9 (patch) | |
tree | 1b6b22feec969f74f4564818ec99d10a82d7076b /generic/tclVar.c | |
parent | abe51934a84fa2eacec1b4f7707a407d91fbefa0 (diff) | |
download | tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.zip tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.tar.gz tcl-15f0f765a5441cc7e8ad6b05238368f91ed0f8e9.tar.bz2 |
* generic/tclVar.c: Fixed code that check for proper # of args to
* tests/var.test: [array names]. Added test. [Bug 624755]
Diffstat (limited to 'generic/tclVar.c')
-rw-r--r-- | generic/tclVar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclVar.c b/generic/tclVar.c index 0143b2f..28684cd 100644 --- a/generic/tclVar.c +++ b/generic/tclVar.c @@ -15,7 +15,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclVar.c,v 1.67 2002/09/05 20:21:06 dgp Exp $ + * RCS: @(#) $Id: tclVar.c,v 1.68 2002/10/17 17:41:44 dgp Exp $ */ #include "tclInt.h" @@ -3093,7 +3093,7 @@ Tcl_ArrayObjCmd(dummy, interp, objc, objv) mode = OPT_GLOB; - if ((objc < 3) && (objc > 5)) { + if ((objc < 3) || (objc > 5)) { Tcl_WrongNumArgs(interp, 2, objv, "arrayName ?mode? ?pattern?"); return TCL_ERROR; |