From: Travis Cross Date: Thu, 22 Sep 2011 04:41:31 +0000 (+0000) Subject: fs_cli: ignore leading spaces on the CLI X-Git-Tag: v1.2-rc1~51^2~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e93151b79f90c30e24247d4a20db1cef9fe22c8;p=thirdparty%2Ffreeswitch.git fs_cli: ignore leading spaces on the CLI --- diff --git a/libs/esl/fs_cli.c b/libs/esl/fs_cli.c index 4e6b20a2b2..62745e03a3 100644 --- a/libs/esl/fs_cli.c +++ b/libs/esl/fs_cli.c @@ -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);