Skip to content

Commit eb81f7a

Browse files
committed
Ease ref counter clear when unsetting var due to init value
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
1 parent ed758fd commit eb81f7a

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

tcl/envmngt.tcl.in

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1784,9 +1784,7 @@ proc unload-path {cmd mode dflbhv args} {
17841784
if {!$isrefcount || ![info exists countarr($init_value)] ||\
17851785
$countarr($init_value) <= 1} {
17861786
set newpath [list]
1787-
if {[info exists countarr($init_value)]} {
1788-
unset countarr($init_value)
1789-
}
1787+
unset -nocomplain countarr($init_value)
17901788
}
17911789
}
17921790

0 commit comments

Comments
 (0)