tweak from eariler patch (reported by Dale Thatcher)

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5211 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2007-05-23 13:37:35 +00:00
parent dcd1d6423b
commit d10082c23f
1 changed files with 2 additions and 2 deletions

View File

@ -177,13 +177,13 @@ static uint8_t check_channel_status(switch_channel_t **peer_channels,
(early_ok && len == 1 && switch_channel_test_flag(peer_channels[i], CF_EARLY_MEDIA))) &&
!switch_channel_test_flag(peer_channels[i], CF_TAGGED)) {
if (key) {
if (!switch_strlen_zero(key)) {
struct key_collect *collect;
if ((collect = switch_core_session_alloc(peer_sessions[i], sizeof(*collect)))) {
switch_channel_set_flag(peer_channels[i], CF_TAGGED);
collect->key = key;
if (file) {
if (!switch_strlen_zero(file)) {
collect->file = switch_core_session_strdup(peer_sessions[i], file);
}