[Freeswitch-svn] [commit] r4777 - freeswitch/trunk/src
Freeswitch SVN
mikej at freeswitch.org
Wed Mar 28 08:30:21 EDT 2007
Author: mikej
Date: Wed Mar 28 08:30:20 2007
New Revision: 4777
Modified:
freeswitch/trunk/src/switch_channel.c
Log:
fix seg.
Modified: freeswitch/trunk/src/switch_channel.c
==============================================================================
--- freeswitch/trunk/src/switch_channel.c (original)
+++ freeswitch/trunk/src/switch_channel.c Wed Mar 28 08:30:20 2007
@@ -948,11 +948,13 @@
SWITCH_DECLARE(switch_caller_extension_t *) switch_channel_get_caller_extension(switch_channel_t *channel)
{
- switch_caller_extension_t *extension;
+ switch_caller_extension_t *extension = NULL;
assert(channel != NULL);
switch_mutex_lock(channel->profile_mutex);
- extension = channel->caller_profile->caller_extension;
+ if (channel->caller_profile) {
+ extension = channel->caller_profile->caller_extension;
+ }
switch_mutex_unlock(channel->profile_mutex);
return extension;
}
More information about the Freeswitch-svn
mailing list