mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-16 16:58:35 +00:00
fs_cli: ignore leading spaces on the CLI
This commit is contained in:
parent
ee94dac7cb
commit
1e93151b79
@ -640,6 +640,7 @@ static const char *cli_usage =
|
|||||||
|
|
||||||
static int process_command(esl_handle_t *handle, const char *cmd)
|
static int process_command(esl_handle_t *handle, const char *cmd)
|
||||||
{
|
{
|
||||||
|
while (*cmd == ' ') cmd++;
|
||||||
if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
|
if ((*cmd == '/' && cmd++) || !strncasecmp(cmd, "...", 3)) {
|
||||||
if (!strcasecmp(cmd, "help")) {
|
if (!strcasecmp(cmd, "help")) {
|
||||||
printf("%s", cli_usage);
|
printf("%s", cli_usage);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user