]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fs_cli: ignore leading spaces on the CLI
authorTravis Cross <tc@traviscross.com>
Thu, 22 Sep 2011 04:41:31 +0000 (04:41 +0000)
committerTravis Cross <tc@traviscross.com>
Fri, 23 Sep 2011 01:25:42 +0000 (01:25 +0000)
libs/esl/fs_cli.c

index 4e6b20a2b2ddcc622c6ebf050aebe3976967b166..62745e03a3c3490398a5a1f6601e18ce45112546 100644 (file)
@@ -640,6 +640,7 @@ static const char *cli_usage =
 
 static int process_command(esl_handle_t *handle, const char *cmd)
 {
+       while (*cmd == ' ') cmd++;
        if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
                if (!strcasecmp(cmd, "help")) {
                        printf("%s", cli_usage);