Skip to content

Commit

Permalink
util, canvas: fix leak variables
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Sep 23, 2021
1 parent 7e10cf4 commit 82113e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/util.sh
Expand Up @@ -964,6 +964,7 @@ function ble/builtin/trap/set-readline-signal {
fi

# Skip if already registered
local trap
ble/util/assign trap "builtin trap -p $sig"
local cmd="trap -- '$handler' SIG$sig"
[[ $cmd == "$trap" ]] && return 0
Expand Down

0 comments on commit 82113e9

Please sign in to comment.