FS-9222 small tweak to freeswitch console to strip leading spaces from commands
This commit is contained in:
parent
d5e390aba5
commit
9ca13303f4
|
@ -352,7 +352,7 @@ SWITCH_DECLARE(switch_status_t) switch_console_execute(char *xcmd, int rec, swit
|
|||
int argc;
|
||||
char *argv[128];
|
||||
int x;
|
||||
char *dup = strdup(xcmd);
|
||||
char *dup = NULL;
|
||||
char *cmd;
|
||||
|
||||
switch_status_t status = SWITCH_STATUS_FALSE;
|
||||
|
@ -363,6 +363,10 @@ SWITCH_DECLARE(switch_status_t) switch_console_execute(char *xcmd, int rec, swit
|
|||
goto end;
|
||||
}
|
||||
|
||||
while (*xcmd == ' ') xcmd++;
|
||||
|
||||
dup = strdup(xcmd);
|
||||
|
||||
if (!strncasecmp(xcmd, "alias", 5)) {
|
||||
argc = 1;
|
||||
argv[0] = xcmd;
|
||||
|
|
Loading…
Reference in New Issue