From a8799c016e292da05ef9c9168be2d4e5e4f01426 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Sun, 12 Feb 2012 20:31:28 +0100 Subject: command: Fix segfault when trying to mute a source output --- src/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit