Fix segfault when bindsym command is empty (#5001)

Remove end token from BINDCOMMAND

fixes i3/i3#5000: bindsym command cannot be empty, because NULL string
causes i3 to segfault when copied in configure_binding()
This commit is contained in:
zhiv-git
2022-06-08 23:38:21 +03:00
committed by GitHub
parent 6ab64aa5b7
commit ce2665ca96
3 changed files with 32 additions and 2 deletions

View File

@ -400,8 +400,6 @@ state BINDCOMMAND:
->
command = string
-> call cfg_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $exclude_titlebar, $command)
end
-> call cfg_binding($bindtype, $modifiers, $key, $release, $border, $whole_window, $exclude_titlebar, $command)
################################################################################
# Mode configuration