alsaucm: fix command line arguments parsing

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
Jaroslav Kysela 2010-10-21 20:24:37 +02:00
parent 47563fb2eb
commit ce282e63c7

View file

@ -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);