diff options
Diffstat (limited to 'sway')
-rw-r--r-- | sway/commands/bind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c index de2e7bd4..f903f939 100644 --- a/sway/commands/bind.c +++ b/sway/commands/bind.c @@ -608,7 +608,7 @@ void seat_execute_command(struct sway_seat *seat, struct sway_binding *binding) return; } memcpy(deferred, binding, sizeof(struct sway_binding)); - deferred->command = strdup(binding->command); + deferred->command = binding->command ? strdup(binding->command) : NULL; list_add(seat->deferred_bindings, deferred); return; } |