aboutsummaryrefslogtreecommitdiffstats
path: root/sway/handlers.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/handlers.c')
-rw-r--r--sway/handlers.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 86a976d8..23a994b4 100644
--- a/sway/handlers.c
+++ b/sway/handlers.c
@@ -571,6 +571,10 @@ static void handle_binding_command(struct sway_binding *binding) {
571 // binding since it will be gone after the reload has completed. 571 // binding since it will be gone after the reload has completed.
572 if (strcasecmp(binding->command, "reload") == 0) { 572 if (strcasecmp(binding->command, "reload") == 0) {
573 binding_copy = sway_binding_dup(binding); 573 binding_copy = sway_binding_dup(binding);
574 if (!binding_copy) {
575 sway_log(L_ERROR, "Unable to duplicate binding during reload");
576 return;
577 }
574 reload = true; 578 reload = true;
575 } 579 }
576 580