From 6988faa4488b18f594f28772192b52d1cbd7e657 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 2 Feb 2009 17:04:56 +0000 Subject: [PATCH] fix windows build git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11596 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_core_session.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index cf3dcc1c14..29c3a287d8 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -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);