]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
oops
authorMathieu Rene <mrene@avgs.ca>
Fri, 5 Jun 2009 01:17:59 +0000 (01:17 +0000)
committerMathieu Rene <mrene@avgs.ca>
Fri, 5 Jun 2009 01:17:59 +0000 (01:17 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13627 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_caller.c
src/switch_core_session.c

index 4b19170dee9cd017c9dcc55ba4118b0c29161853..69dea8d66f108f85ae95fa9d68f0b826d23c3e55 100644 (file)
@@ -50,9 +50,8 @@ SWITCH_DECLARE(switch_caller_profile_t *) switch_caller_profile_new(switch_memor
        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";
index a92e48b1477474eaf31f6894efe35e474b40ecbc..a924966e2644e23f177287c5b8f2622b307b407d 100644 (file)
@@ -1524,9 +1524,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_execute_exten(switch_core_se
                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])));