From: Anthony Minessale Date: Thu, 10 Mar 2011 16:47:26 +0000 (-0600) Subject: FS-3141 X-Git-Tag: v1.2-rc1~171^2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8758d2f71df0e689f65e2330755d2cc3ebb7f3b0;p=thirdparty%2Ffreeswitch.git FS-3141 --- diff --git a/src/switch_channel.c b/src/switch_channel.c index 4341ea9214..bc9b76e90b 100644 --- a/src/switch_channel.c +++ b/src/switch_channel.c @@ -751,7 +751,7 @@ SWITCH_DECLARE(switch_event_header_t *) switch_channel_variable_first(switch_cha switch_assert(channel != NULL); switch_mutex_lock(channel->profile_mutex); - if ((hi = channel->variables->headers)) { + if (channel->variables && (hi = channel->variables->headers)) { channel->vi = 1; } else { switch_mutex_unlock(channel->profile_mutex);