]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
cleanups
authorMichael Jerris <mike@jerris.com>
Tue, 11 Dec 2007 19:54:04 +0000 (19:54 +0000)
committerMichael Jerris <mike@jerris.com>
Tue, 11 Dec 2007 19:54:04 +0000 (19:54 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@6663 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_channel.c

index 41695a3c5ef83692e8d7baabfcd34957b4aa5452..f4c4ceb7e8d1ae105f79401639e6b1385399684b 100644 (file)
@@ -937,6 +937,7 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_channel_get_caller_profile(swit
 SWITCH_DECLARE(void) switch_channel_set_originator_caller_profile(switch_channel_t *channel, switch_caller_profile_t *caller_profile)
 {
        switch_assert(channel != NULL);
+       switch_assert(channel->caller_profile != NULL);
        switch_mutex_lock(channel->profile_mutex);
        if (channel->caller_profile) {
                caller_profile->next = channel->caller_profile->originator_caller_profile;
@@ -949,6 +950,7 @@ SWITCH_DECLARE(void) switch_channel_set_originator_caller_profile(switch_channel
 SWITCH_DECLARE(void) switch_channel_set_originatee_caller_profile(switch_channel_t *channel, switch_caller_profile_t *caller_profile)
 {
        switch_assert(channel != NULL);
+       switch_assert(channel->caller_profile != NULL);
 
        switch_mutex_lock(channel->profile_mutex);
        if (channel->caller_profile) {