This commit is contained in:
Anthony Minessale 2011-03-10 10:47:26 -06:00
parent 687140b588
commit 8758d2f71d
1 changed files with 1 additions and 1 deletions

View File

@ -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);