提交 088f8c16 authored 作者: Brian West's avatar Brian West

fix sillyness

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7794 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 26d197cf
......@@ -252,7 +252,7 @@ static char prompt_str[512] = "";
* If a fnkey is configured then process the command
*/
static unsigned char console_fnkey_pressed(int i) {
char *c;
char *c, *cmd;
assert((i > 0) && (i <= 12));
......@@ -265,8 +265,10 @@ static unsigned char console_fnkey_pressed(int i) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "FUNCTION KEY F%d IS NOT BOUND, please edit switch.conf XML file\n", i);
return CC_REDISPLAY;
}
switch_console_process(c);
cmd = strdup(c);
switch_console_process(cmd);
free(cmd);
return CC_REDISPLAY;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论