summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorstwo <stwo>2010-11-02 21:57:19 (GMT)
committerstwo <stwo>2010-11-02 21:57:19 (GMT)
commitb2694cb09fefbce3de045cb20db90eda56abfb8d (patch)
tree17da2d000431a826a93706e7e736c86a05bae891 /library
parentb902883875544b99bde850df63f7f391c765409a (diff)
downloadtcl-b2694cb09fefbce3de045cb20db90eda56abfb8d.zip
tcl-b2694cb09fefbce3de045cb20db90eda56abfb8d.tar.gz
tcl-b2694cb09fefbce3de045cb20db90eda56abfb8d.tar.bz2
Improved handling of non-standard module path lists, empty path lists in particular.
Diffstat (limited to 'library')
-rw-r--r--library/safe.tcl8
1 files changed, 4 insertions, 4 deletions
diff --git a/library/safe.tcl b/library/safe.tcl
index 6a2cdbe..57c3619 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.16.4.8 2010/09/02 18:30:29 andreas_kupries Exp $
+# RCS: @(#) $Id: safe.tcl,v 1.16.4.9 2010/11/02 21:57:19 stwo Exp $
#
# The implementation is based on namespaces. These naming conventions are
@@ -492,9 +492,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
}