FSCORE-641 Windows: Don't report "unknown command" on console when empty command has been given

This commit is contained in:
Jeff Lenk 2010-07-27 09:23:56 -05:00
parent 4c64ce4162
commit c8f9fb565c
1 changed files with 4 additions and 3 deletions

View File

@ -1472,11 +1472,12 @@ SWITCH_DECLARE(void) switch_console_loop(void)
if (console_readConsole(stdinHandle, keys, (int) sizeof(keys), &read, &key)) {
if (console_bufferInput(keys, read, cmd, key)) {
if (!strcmp(cmd, "Empty")) {
cmd[0] = '\n';
cmd[1] = 0;
cmd[0] = 0;
}
activity = 1;
running = switch_console_process(cmd);
if (cmd[0]) {
running = switch_console_process(cmd);
}
memset(cmd, 0, sizeof(cmd));
}
}