fix sillyness

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7794 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-03-05 20:46:21 +00:00
parent 26d197cf16
commit 088f8c16a6
1 changed files with 5 additions and 3 deletions

View File

@ -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;
}