diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2009-01-09 15:00:26 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2009-01-09 15:00:26 (GMT) |
commit | 86d5b60ce155355dda1770c4fef4fdefea64ebf4 (patch) | |
tree | a03af43a9b4a64c3c8bd88d1556bfc0e43dd46d0 /generic/tclNamesp.c | |
parent | 4a6ee21a80ee4a00adc8da96ed88329e7faaebf4 (diff) | |
download | tcl-86d5b60ce155355dda1770c4fef4fdefea64ebf4.zip tcl-86d5b60ce155355dda1770c4fef4fdefea64ebf4.tar.gz tcl-86d5b60ce155355dda1770c4fef4fdefea64ebf4.tar.bz2 |
Fix [Bug 1558654]
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r-- | generic/tclNamesp.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c index 5908bb1..79b7d48 100644 --- a/generic/tclNamesp.c +++ b/generic/tclNamesp.c @@ -23,7 +23,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclNamesp.c,v 1.184 2009/01/09 11:21:46 dkf Exp $ + * RCS: @(#) $Id: tclNamesp.c,v 1.185 2009/01/09 15:00:27 dkf Exp $ */ #include "tclInt.h" @@ -4861,6 +4861,14 @@ NamespaceEnsembleCmd( Tcl_Obj *unknownObj = NULL; Tcl_Obj *paramObj = NULL; + /* + * Check that we've got option-value pairs... [Bug 1558654] + */ + + if ((objc & 1) == 0) { + Tcl_WrongNumArgs(interp, 3, objv, "?option value ...?"); + return TCL_ERROR; + } objv += 3; objc -= 3; |