Skip to content

Commit

Permalink
opComplement: handle empty b list
Browse files Browse the repository at this point in the history
  • Loading branch information
jmroot committed Aug 16, 2024
1 parent 1612b9d commit 96520f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/portlist1.0/portlist.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ proc portlist::opComplement {a b} {
# Top level keys are normalised port names.
# Second level is a dict mapping fully discriminated names (to empty
# strings since we don't need the full entries from b.)
set bdict [dict create]
foreach bitem $b {
dict set bdict [string tolower [dict get $bitem name]] [dict get $bitem fullname] ""
}
Expand Down

0 comments on commit 96520f2

Please sign in to comment.