aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/bindsym.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar/bindsym.c')
-rw-r--r--sway/commands/bar/bindsym.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/bar/bindsym.c b/sway/commands/bar/bindsym.c
index bb81b4a9..5f90b51a 100644
--- a/sway/commands/bar/bindsym.c
+++ b/sway/commands/bar/bindsym.c
@@ -26,6 +26,9 @@ struct cmd_results *bar_cmd_bindsym(int argc, char **argv) {
26 return cmd_results_new(CMD_INVALID, "bindsym", "Invalid mouse binding %s", argv[1]); 26 return cmd_results_new(CMD_INVALID, "bindsym", "Invalid mouse binding %s", argv[1]);
27 } 27 }
28 struct sway_mouse_binding *binding = malloc(sizeof(struct sway_mouse_binding)); 28 struct sway_mouse_binding *binding = malloc(sizeof(struct sway_mouse_binding));
29 if (!binding) {
30 return cmd_results_new(CMD_FAILURE, "bindsym", "Unable to allocate binding");
31 }
29 binding->button = numbutton; 32 binding->button = numbutton;
30 binding->command = join_args(argv + 1, argc - 1); 33 binding->command = join_args(argv + 1, argc - 1);
31 34