提交 c8f9fb56 authored 作者: Jeff Lenk's avatar Jeff Lenk

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

上级 4c64ce41
...@@ -1472,11 +1472,12 @@ SWITCH_DECLARE(void) switch_console_loop(void) ...@@ -1472,11 +1472,12 @@ SWITCH_DECLARE(void) switch_console_loop(void)
if (console_readConsole(stdinHandle, keys, (int) sizeof(keys), &read, &key)) { if (console_readConsole(stdinHandle, keys, (int) sizeof(keys), &read, &key)) {
if (console_bufferInput(keys, read, cmd, key)) { if (console_bufferInput(keys, read, cmd, key)) {
if (!strcmp(cmd, "Empty")) { if (!strcmp(cmd, "Empty")) {
cmd[0] = '\n'; cmd[0] = 0;
cmd[1] = 0;
} }
activity = 1; activity = 1;
running = switch_console_process(cmd); if (cmd[0]) {
running = switch_console_process(cmd);
}
memset(cmd, 0, sizeof(cmd)); memset(cmd, 0, sizeof(cmd));
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论