diff options
author | stwo <stwo> | 2010-11-02 21:42:27 (GMT) |
---|---|---|
committer | stwo <stwo> | 2010-11-02 21:42:27 (GMT) |
commit | 03556d3d486b03faccfd612eaaecce57f204a66e (patch) | |
tree | 372bd3e73a7fdf243c40587efcb01c61ad026030 /library | |
parent | c3ea6a8d7531afa93834d9b212450b10f9ac6474 (diff) | |
download | tcl-03556d3d486b03faccfd612eaaecce57f204a66e.zip tcl-03556d3d486b03faccfd612eaaecce57f204a66e.tar.gz tcl-03556d3d486b03faccfd612eaaecce57f204a66e.tar.bz2 |
Improved handling of non-standard module path lists, empty path lists in particular.
Diffstat (limited to 'library')
-rw-r--r-- | library/safe.tcl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/safe.tcl b/library/safe.tcl index 0cae5fd..3c2a2c4 100644 --- a/library/safe.tcl +++ b/library/safe.tcl @@ -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: safe.tcl,v 1.41 2010/09/02 18:31:00 andreas_kupries Exp $ +# RCS: @(#) $Id: safe.tcl,v 1.42 2010/11/02 21:42:28 stwo Exp $ # # The implementation is based on namespaces. These naming conventions are @@ -500,9 +500,9 @@ proc ::safe::InterpInit { # Sync the paths used to search for Tcl modules. This can be done only # now, after tm.tcl was loaded. namespace upvar ::safe S$slave state - ::interp eval $slave [list \ - ::tcl::tm::add {*}$state(tm_path_slave)] - + if {[llength $state(tm_path_slave)] > 0} { + ::interp eval $slave [list ::tcl::tm::add {*}$state(tm_path_slave)] + } return $slave } |