[Freeswitch-svn] [commit] r9311 - freeswitch/trunk/src/mod/languages/mod_lua
Freeswitch SVN
anthm at freeswitch.org
Sat Aug 16 11:56:29 EDT 2008
Author: anthm
Date: Sat Aug 16 11:56:29 2008
New Revision: 9311
Modified:
freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp
Log:
dont eval blank string
Modified: freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp (original)
+++ freeswitch/trunk/src/mod/languages/mod_lua/freeswitch_lua.cpp Sat Aug 16 11:56:29 2008
@@ -225,7 +225,7 @@
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 @@
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++;
}
More information about the Freeswitch-svn
mailing list