]> git.alsa-project.org Git - alsa-utils.git/commitdiff
alsaucm: fix command line arguments parsing ucm
authorJaroslav Kysela <perex@perex.cz>
Thu, 21 Oct 2010 18:24:37 +0000 (20:24 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 21 Oct 2010 18:24:37 +0000 (20:24 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaucm/usecase.c

index 58165f76c8efd9eaec8df98ec45a7fea62e0088f..bb894c6e270c9bf55e5e43e517ec46afc82f0951 100644 (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);