summaryrefslogtreecommitdiff
path: root/sway/commands/input.c
diff options
context:
space:
mode:
authorTony Crisci <[email protected]>2018-01-20 11:44:34 -0500
committerTony Crisci <[email protected]>2018-01-20 11:44:34 -0500
commitcc3c713889e529c74888d9cd89af7039bfbae20c (patch)
treef40da3a0fc2639b6a22bdb0e323106f66d27ec45 /sway/commands/input.c
parent9e0595f26bcca2a4d0aa735c4cd9fc4f792918bf (diff)
seat config handler context
Diffstat (limited to 'sway/commands/input.c')
-rw-r--r--sway/commands/input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/input.c b/sway/commands/input.c
index 5de65621..fa9cf05a 100644
--- a/sway/commands/input.c
+++ b/sway/commands/input.c
@@ -28,6 +28,9 @@ struct cmd_results *cmd_input(int argc, char **argv) {
if (!has_context) {
// caller did not give a context so create one just for this command
config->handler_context.input_config = new_input_config(argv[0]);
+ if (!config->handler_context.input_config) {
+ return cmd_results_new(CMD_FAILURE, NULL, "Couldn't allocate config");
+ }
}
int argc_new = argc-2;