aboutsummaryrefslogtreecommitdiffstats
path: root/ponymix.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ponymix.cc')
-rw-r--r--ponymix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymix.cc b/ponymix.cc
index 15e09f3..a620036 100644
--- a/ponymix.cc
+++ b/ponymix.cc
@@ -554,7 +554,7 @@ static int CommandDispatch(PulseClient& ponymix, int argc, char *argv[]) {
}
const auto& cmd = string_to_command(opt_action);
- if (cmd.second.args.InRange(argc) != 0) {
+ if (!cmd.second.args.InRange(argc)) {
error_wrong_args(cmd.second, cmd.first.c_str());
}