diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-02-12 20:31:28 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2012-02-12 20:31:28 +0100 |
commit | a8799c016e292da05ef9c9168be2d4e5e4f01426 (patch) | |
tree | 1f9d234b2bffa544dd2f03ed0661eb7c7c81b16d | |
parent | b87627e11f6845e2db24d60702ce681b5910742b (diff) | |
download | pa-sink-ctl-a8799c016e292da05ef9c9168be2d4e5e4f01426.tar.gz pa-sink-ctl-a8799c016e292da05ef9c9168be2d4e5e4f01426.tar.bz2 pa-sink-ctl-a8799c016e292da05ef9c9168be2d4e5e4f01426.zip |
command: Fix segfault when trying to mute a source output
-rw-r--r-- | src/command.c | 2 |
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); |