From: Stefan Knoblich Date: Fri, 9 May 2008 16:24:38 +0000 (+0000) Subject: Should fix the problem reported by pressureman X-Git-Tag: v1.0-rc5~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c35fb67e111ec804631033375c8fd5c4ea2d3530;p=thirdparty%2Ffreeswitch.git Should fix the problem reported by pressureman git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8331 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_lua/freeswitch_lua.cpp b/src/mod/languages/mod_lua/freeswitch_lua.cpp index 93c3138ba0..e000b48dfc 100644 --- a/src/mod/languages/mod_lua/freeswitch_lua.cpp +++ b/src/mod/languages/mod_lua/freeswitch_lua.cpp @@ -130,7 +130,7 @@ void Session::setHangupHook(char *func, char *arg) { if (func) { hangup_func_str = strdup(func); - if (arg) { + if (!switch_strlen_zero(arg)) { hangup_func_arg = strdup(arg); } switch_channel_set_private(channel, "CoreSession", this);