summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--alsaucm/usecase.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/alsaucm/usecase.c b/alsaucm/usecase.c
index 58165f7..bb894c6 100644
--- a/alsaucm/usecase.c
+++ b/alsaucm/usecase.c
@@ -401,7 +401,7 @@ int main(int argc, char *argv[])
}
/* parse and execute any command line commands */
- if (argc >= 3) {
+ if (argc > optind) {
context->argv = argv + optind;
context->argc = argc - optind;
err = do_commands(context);