diff options
Diffstat (limited to 'sway/commands/input.c')
-rw-r--r-- | sway/commands/input.c | 3 |
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) { | |||
28 | if (!has_context) { | 28 | if (!has_context) { |
29 | // caller did not give a context so create one just for this command | 29 | // caller did not give a context so create one just for this command |
30 | config->handler_context.input_config = new_input_config(argv[0]); | 30 | config->handler_context.input_config = new_input_config(argv[0]); |
31 | if (!config->handler_context.input_config) { | ||
32 | return cmd_results_new(CMD_FAILURE, NULL, "Couldn't allocate config"); | ||
33 | } | ||
31 | } | 34 | } |
32 | 35 | ||
33 | int argc_new = argc-2; | 36 | int argc_new = argc-2; |