mirror of
https://github.com/swaywm/sway.git
synced 2025-11-07 13:29:56 -05:00
Handle allocation failures in security code
Note that such errors are generally going to be fatal
This commit is contained in:
parent
31b002b6d5
commit
7784f1a905
3 changed files with 24 additions and 2 deletions
|
|
@ -575,6 +575,9 @@ struct cmd_results *config_commands_command(char *exec) {
|
|||
}
|
||||
if (!policy) {
|
||||
policy = alloc_command_policy(cmd);
|
||||
if (!policy) {
|
||||
sway_abort("Unable to allocate security policy");
|
||||
}
|
||||
list_add(config->command_policies, policy);
|
||||
}
|
||||
policy->context = context;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue