[Freeswitch-svn] [commit] r13627 - freeswitch/trunk/src

FreeSWITCH SVN mrene at freeswitch.org
Thu Jun 4 18:17:59 PDT 2009


Author: mrene
Date: Thu Jun  4 20:17:59 2009
New Revision: 13627

Log:
oops

Modified:
   freeswitch/trunk/src/switch_caller.c
   freeswitch/trunk/src/switch_core_session.c

Modified: freeswitch/trunk/src/switch_caller.c
==============================================================================
--- freeswitch/trunk/src/switch_caller.c	(original)
+++ freeswitch/trunk/src/switch_caller.c	Thu Jun  4 20:17:59 2009
@@ -50,9 +50,8 @@
 	switch_caller_profile_t *profile = NULL;
 
 	profile = switch_core_alloc(pool, sizeof(*profile));
+	switch_assert(profile != NULL);	
 	memset(profile, 0, sizeof(*profile));
-	
-	switch_assert(profile != NULL);
 
 	if (!context) {
 		context = "default";

Modified: freeswitch/trunk/src/switch_core_session.c
==============================================================================
--- freeswitch/trunk/src/switch_core_session.c	(original)
+++ freeswitch/trunk/src/switch_core_session.c	Thu Jun  4 20:17:59 2009
@@ -1524,9 +1524,7 @@
 		new_profile->context = switch_core_strdup(new_profile->pool, context);
 	}
 
-	dpstr = switch_core_session_strdup(session, new_profile->dialplan);
-	
-	
+	dpstr = switch_core_session_strdup(session, new_profile->dialplan);	
 
 	switch_channel_set_hunt_caller_profile(channel, new_profile);
 	argc = switch_separate_string(dpstr, ',', dp, (sizeof(dp) / sizeof(dp[0])));



More information about the Freeswitch-svn mailing list