diff options
author | dgp <dgp@noemail.net> | 2009-11-12 16:31:14 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2009-11-12 16:31:14 (GMT) |
commit | 723dc0d391ea2230c8291961ba266361f6a5e171 (patch) | |
tree | ca0727c01861552cfbb88fb292f3c2e2bf229efb /generic/tclClock.c | |
parent | 689ea4ce5706e8e0df1b638b8a2c64b193b19521 (diff) | |
download | tcl-723dc0d391ea2230c8291961ba266361f6a5e171.zip tcl-723dc0d391ea2230c8291961ba266361f6a5e171.tar.gz tcl-723dc0d391ea2230c8291961ba266361f6a5e171.tar.bz2 |
* generic/tclClock.c (TclClockInit): Do not create [clock] support
commands in safe interps.
FossilOrigin-Name: 3d9d716a035d1d2bf5e5ad22c74d55fd5554830d
Diffstat (limited to 'generic/tclClock.c')
-rw-r--r-- | generic/tclClock.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/generic/tclClock.c b/generic/tclClock.c index b123748..7df1759 100644 --- a/generic/tclClock.c +++ b/generic/tclClock.c @@ -12,7 +12,7 @@ * See the file "license.terms" for information on usage and redistribution of * this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclClock.c,v 1.66.2.2 2008/06/17 17:21:38 andreas_kupries Exp $ + * RCS: @(#) $Id: tclClock.c,v 1.66.2.3 2009/11/12 16:31:15 dgp Exp $ */ #include "tclInt.h" @@ -256,6 +256,15 @@ TclClockInit( int i; /* + * Safe interps get [::clock] as alias to a master, so do not need their + * own copies of the support routines. + */ + + if (Tcl_IsSafe(interp)) { + return; + } + + /* * Create the client data, which is a refcounted literal pool. */ |