[Freeswitch-svn] [commit] r7794 - freeswitch/trunk/src
Freeswitch SVN
brian at freeswitch.org
Wed Mar 5 15:46:21 EST 2008
Author: brian
Date: Wed Mar 5 15:46:21 2008
New Revision: 7794
Modified:
freeswitch/trunk/src/switch_console.c
Log:
fix sillyness
Modified: freeswitch/trunk/src/switch_console.c
==============================================================================
--- freeswitch/trunk/src/switch_console.c (original)
+++ freeswitch/trunk/src/switch_console.c Wed Mar 5 15:46:21 2008
@@ -252,7 +252,7 @@
* 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 @@
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;
}
More information about the Freeswitch-svn
mailing list