summaryrefslogtreecommitdiffstats
path: root/generic/tclNamesp.c
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2006-10-29 21:40:42 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2006-10-29 21:40:42 (GMT)
commitf32a30e09c8e10a9cad9028e8830694056f71d62 (patch)
tree086d76a57a761fc5a658ba42f358f506869efdd0 /generic/tclNamesp.c
parentfc1ced4682dfd72cfa8fc82268206e50522eff95 (diff)
downloadtcl-f32a30e09c8e10a9cad9028e8830694056f71d62.zip
tcl-f32a30e09c8e10a9cad9028e8830694056f71d62.tar.gz
tcl-f32a30e09c8e10a9cad9028e8830694056f71d62.tar.bz2
* generic/tclNamesp.c (EnsembleImplementationCmd):
* tests/namespace.test (47.7-8): reverted a wrong "optimisation" that completely broke snit; added two tests.
Diffstat (limited to 'generic/tclNamesp.c')
-rw-r--r--generic/tclNamesp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tclNamesp.c b/generic/tclNamesp.c
index 040e723..670ae83 100644
--- a/generic/tclNamesp.c
+++ b/generic/tclNamesp.c
@@ -22,7 +22,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.108 2006/10/28 18:09:11 dkf Exp $
+ * RCS: @(#) $Id: tclNamesp.c,v 1.109 2006/10/29 21:40:43 msofer Exp $
*/
#include "tclInt.h"
@@ -6297,7 +6297,7 @@ NsEnsembleImplementationCmd(
int paramc, i;
Tcl_Obj **paramv, *unknownCmd, *ensObj;
- unknownCmd = Tcl_NewListObj(1, &ensemblePtr->unknownHandler);
+ unknownCmd = Tcl_DuplicateObj(ensemblePtr->unknownHandler);
TclNewObj(ensObj);
Tcl_GetCommandFullName(interp, ensemblePtr->token, ensObj);
Tcl_ListObjAppendElement(NULL, unknownCmd, ensObj);