mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-16 22:38:38 +00:00
fs_cli: ignore leading spaces on the CLI
This commit is contained in:
1 parent
ee94dac7cb
commit
1e93151b79
1 file changed
+1
@@ -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);
|
||||||
|
|||||||
Reference in new issue
Block a user