]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3141
authorAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Mar 2011 16:47:26 +0000 (10:47 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Thu, 10 Mar 2011 16:47:26 +0000 (10:47 -0600)
src/switch_channel.c

index 4341ea921486d9a70bc7aaf3a49a1f84073747ed..bc9b76e90bbd5b3e4279ed1f8eb1609b11124bd8 100644 (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);