summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authordgp <dgp@noemail.net>2002-10-17 17:41:42 (GMT)
committerdgp <dgp@noemail.net>2002-10-17 17:41:42 (GMT)
commitaac51522aa532c0df79adf483d3878e6ae1efff2 (patch)
tree1b6b22feec969f74f4564818ec99d10a82d7076b /generic
parent7ec68ceda28d739b6fbeb594d4550d4b29357be0 (diff)
downloadtcl-aac51522aa532c0df79adf483d3878e6ae1efff2.zip
tcl-aac51522aa532c0df79adf483d3878e6ae1efff2.tar.gz
tcl-aac51522aa532c0df79adf483d3878e6ae1efff2.tar.bz2
* generic/tclVar.c: Fixed code that check for proper # of args to
* tests/var.test: [array names]. Added test. [Bug 624755] FossilOrigin-Name: 94a1baf750d500a9750af14a1328a79f827fa110
Diffstat (limited to 'generic')
-rw-r--r--generic/tclVar.c4
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;