]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - audiod_command.c
audiod: Fix memory leak on exit: gengetopt.
[paraslash.git] / audiod_command.c
index b49d659e0ac0bd784b2002b941b3471540ee5ac9..332ce85b6b199a44f076e38c4569b38692a020c8 100644 (file)
@@ -30,7 +30,7 @@ extern struct sched sched;
 extern char *stat_item_values[NUM_STAT_ITEMS];
 
 
-struct audiod_command audiod_cmds[] = {DEFINE_AUDIOD_CMD_ARRAY};
+static struct audiod_command audiod_cmds[] = {DEFINE_AUDIOD_CMD_ARRAY};
 
 /** Iterate over the array of all audiod commands. */
 #define FOR_EACH_COMMAND(c) for (c = 0; audiod_cmds[c].name; c++)
@@ -320,7 +320,6 @@ static int com_stat(int fd, int argc, char **argv)
                if (!strncmp(arg, "-p", 2)) {
                        parser_friendly = 1;
                        b.flags = PBF_SIZE_PREFIX;
-                       continue;
                }
        }
        if (i >= argc)