mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-09 17:25:42 +01:00
alsaucm: fix command line arguments parsing
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
47563fb2eb
commit
ce282e63c7
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue