mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-08 05:11:51 +00:00
dont eval blank string
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9311 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -225,7 +225,7 @@ switch_status_t Session::run_dtmf_callback(void *input, switch_input_type_t ityp
|
||||
lua_pushnumber(L, dtmf->duration);
|
||||
lua_rawset(L, -3);
|
||||
|
||||
if (cb_arg) {
|
||||
if (!switch_strlen_zero(cb_arg)) {
|
||||
lua_getfield(L, LUA_GLOBALSINDEX, (char *) cb_arg);
|
||||
arg_count++;
|
||||
}
|
||||
@@ -249,7 +249,7 @@ switch_status_t Session::run_dtmf_callback(void *input, switch_input_type_t ityp
|
||||
mod_lua_conjure_event(L, event, "__Input_Event__", 1);
|
||||
lua_getfield(L, LUA_GLOBALSINDEX, "__Input_Event__");
|
||||
|
||||
if (cb_arg) {
|
||||
if (!switch_strlen_zero(cb_arg)) {
|
||||
lua_getfield(L, LUA_GLOBALSINDEX, (char *) cb_arg);
|
||||
arg_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user