Dont create control alias unless there is a name to use

This commit is contained in:
Douglas Clowes
2014-06-17 17:25:17 +10:00
parent bcb28e68c1
commit fa63ed8eed

View File

@ -925,9 +925,11 @@ upvar #0 $instDict dictionary
}
foreach node [hmatchprop / permlink *] {
set plink [hgetpropval $node permlink]
set target [lindex $plink 0]
if {$target == "data_set" && [hgetpropval $node control]} {
::hdb::alias "/control" $node {*}$plink
if {[llength $plink] > 1} {
set target [lindex $plink 0]
if {$target == "data_set" && [hgetpropval $node control]} {
::hdb::alias "/control" $node {*}$plink
}
}
}
} message ]