summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 15:16:31 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-04 15:16:31 (GMT)
commit707993b1dd4f01322cdbea334c71a1202373fa9b (patch)
tree8ca691e8c894be68793df51fc0d2d0ce35e98b2a /library
parent1297b4be9b37d8c39cb9bd2f8451c1b69bc6fa13 (diff)
downloadtcl-707993b1dd4f01322cdbea334c71a1202373fa9b.zip
tcl-707993b1dd4f01322cdbea334c71a1202373fa9b.tar.gz
tcl-707993b1dd4f01322cdbea334c71a1202373fa9b.tar.bz2
Fix safe.tcl test-cases: "source -nopkg" is not necessary here: "source" is an alias for "::safe::AliasSource", which doesn't use "source"
Diffstat (limited to 'library')
-rw-r--r--library/init.tcl2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/init.tcl b/library/init.tcl
index 65a19aa..e3d4ef0 100644
--- a/library/init.tcl
+++ b/library/init.tcl
@@ -486,7 +486,7 @@ proc auto_load_index {} {
set dir [lindex $auto_path $i]
set f ""
if {$issafe} {
- catch {source -nopkg [file join $dir tclIndex]}
+ catch {source [file join $dir tclIndex]}
} elseif {[catch {set f [open [file join $dir tclIndex]]}]} {
continue
} else {