]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Should fix the problem reported by pressureman
authorStefan Knoblich <stkn@freeswitch.org>
Fri, 9 May 2008 16:24:38 +0000 (16:24 +0000)
committerStefan Knoblich <stkn@freeswitch.org>
Fri, 9 May 2008 16:24:38 +0000 (16:24 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8331 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_lua/freeswitch_lua.cpp

index 93c3138ba086f5e581dfd1fd00907f18ac579451..e000b48dfc5944f5f915c6100ee8e63f9ce670e4 100644 (file)
@@ -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);