From c35fb67e111ec804631033375c8fd5c4ea2d3530 Mon Sep 17 00:00:00 2001 From: Stefan Knoblich Date: Fri, 9 May 2008 16:24:38 +0000 Subject: [PATCH] Should fix the problem reported by pressureman git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8331 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_lua/freeswitch_lua.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);