From 8758d2f71df0e689f65e2330755d2cc3ebb7f3b0 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 10 Mar 2011 10:47:26 -0600 Subject: [PATCH] FS-3141 --- src/switch_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);