OSDN Git Service

alsaucm: fix command line arguments parsing
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 58165f7..bb894c6 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);