[asterisk-scf-commits] asterisk-scf/release/sip.git branch "master" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Fri Jun 3 07:16:32 CDT 2011


branch "master" has been updated
       via  c44cbcab1add8308822053fda7ebb73a79cadb1b (commit)
      from  3405b3d255c963ba920e859580e1d48062dd241b (commit)

Summary of changes:
 src/PJSipSessionModule.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


- Log -----------------------------------------------------------------
commit c44cbcab1add8308822053fda7ebb73a79cadb1b
Author: Brent Eagles <beagles at digium.com>
Date:   Fri Jun 3 09:45:33 2011 -0230

    Initializing pointers to 0. This would cause crashes on Windows if they weren't
    set.. (and probably release mode builds too).

diff --git a/src/PJSipSessionModule.cpp b/src/PJSipSessionModule.cpp
index 8477fdf..74fe6f3 100644
--- a/src/PJSipSessionModule.cpp
+++ b/src/PJSipSessionModule.cpp
@@ -880,8 +880,8 @@ void PJSipSessionModule::handleRefer(pjsip_inv_session *inv, pjsip_rx_data *rdat
 
     pj_str_t replaces = pj_str((char*)"Replaces");
     pjsip_param *replaces_param = pjsip_param_find(&target_sip_uri->other_param, &replaces);
-    pjsip_param *to_tag_param;
-    pjsip_param *from_tag_param;
+    pjsip_param *to_tag_param = 0;
+    pjsip_param *from_tag_param = 0;
     std::string target;
     if (!replaces_param)
     {
@@ -903,7 +903,7 @@ void PJSipSessionModule::handleRefer(pjsip_inv_session *inv, pjsip_rx_data *rdat
     SipSessionPtr session = session_mod_info->getSessionPtr();
 
     //Create our initial response that we can modify in the queueable operation.
-    pjsip_tx_data *tdata;
+    pjsip_tx_data *tdata = 0;
     pjsip_dlg_create_response(inv->dlg, rdata, 200, NULL, &tdata);
 
     lg(Debug) << "Queuing a HandleReferOperation";

-----------------------------------------------------------------------


-- 
asterisk-scf/release/sip.git



More information about the asterisk-scf-commits mailing list