mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Handle config-related allocation failures
This commit is contained in:
parent
248df18c24
commit
d75a747a3d
3 changed files with 134 additions and 58 deletions
|
|
@ -571,6 +571,10 @@ static void handle_binding_command(struct sway_binding *binding) {
|
|||
// binding since it will be gone after the reload has completed.
|
||||
if (strcasecmp(binding->command, "reload") == 0) {
|
||||
binding_copy = sway_binding_dup(binding);
|
||||
if (!binding_copy) {
|
||||
sway_log(L_ERROR, "Unable to duplicate binding during reload");
|
||||
return;
|
||||
}
|
||||
reload = true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue