int argc;
char *argv[128];
int x;
- char *dup = strdup(xcmd);
+ char *dup = NULL;
char *cmd;
switch_status_t status = SWITCH_STATUS_FALSE;
goto end;
}
+ while (xcmd && *xcmd == ' ') {
+ xcmd++;
+ }
+
+ dup = strdup(xcmd);
+
if (!strncasecmp(xcmd, "alias", 5)) {
argc = 1;
argv[0] = xcmd;
switch_assert(stream->data != NULL);
switch_assert(stream->write_function != NULL);
+ while (cmd && *cmd == ' ') {
+ cmd++;
+ }
+
if (strcasecmp(cmd, "console_complete")) {
cmd_used = switch_strip_whitespace(cmd);
arg_used = switch_strip_whitespace(arg);