]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix windows build
authorMichael Jerris <mike@jerris.com>
Mon, 2 Feb 2009 17:04:56 +0000 (17:04 +0000)
committerMichael Jerris <mike@jerris.com>
Mon, 2 Feb 2009 17:04:56 +0000 (17:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11596 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_core_session.c

index cf3dcc1c140601ffad8eb1c51dbf4400098a9158..29c3a287d87b1feb4f95e05e486b712de759ba5a 100644 (file)
@@ -1299,7 +1299,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_exec(switch_core_session_t *
                log = switch_core_session_alloc(session, sizeof(*log));
 
                log->app = switch_core_session_strdup(session, application_interface->interface_name);
-               log->arg = switch_core_session_strdup(session, expanded);
+               if (expanded) {
+                       log->arg = switch_core_session_strdup(session, expanded);
+               }
 
                for (lp = session->app_log; lp && lp->next; lp = lp->next);