summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command.c b/src/command.c
index 1b90c60..a8c0534 100644
--- a/src/command.c
+++ b/src/command.c
@@ -158,7 +158,7 @@ toggle_mute(struct context *ctx, int key)
return;
ctl = ctx->interface.current_ctl;
- if (!ctl && !ctl->mute_set)
+ if (!ctl || !ctl->mute_set)
return;
o = ctl->mute_set(ctx->context, ctl->index, !ctl->mute, NULL, NULL);