remove unnecessary line and add NULL check
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15832 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
12e54755cd
commit
6592c9a616
|
@ -2500,7 +2500,6 @@ SWITCH_STANDARD_API(originate_function)
|
|||
}
|
||||
|
||||
caller_channel = switch_core_session_get_channel(caller_session);
|
||||
switch_channel_clear_state_handler(caller_channel, NULL);
|
||||
|
||||
if (*exten == '&' && *(exten + 1)) {
|
||||
switch_caller_extension_t *extension = NULL;
|
||||
|
|
|
@ -1747,7 +1747,7 @@ SWITCH_DECLARE(void) switch_channel_clear_state_handler(switch_channel_t *channe
|
|||
}
|
||||
} else {
|
||||
for (index = 0; index < i; index++) {
|
||||
if (switch_test_flag(channel->state_handlers[index], SSH_FLAG_STICKY)) {
|
||||
if (channel->state_handlers[index] && switch_test_flag(channel->state_handlers[index], SSH_FLAG_STICKY)) {
|
||||
new_handlers[channel->state_handler_index++] = channel->state_handlers[index];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue