Module: sems
Branch: master
Commit: 2c1bd3ce013b735331ad0cea5b6d2006efc0b94a
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sems/?a=commit;h=2c1bd3ce013b735331ad0cea5b6d2006efc0b94a

Author: Raphael Coeffic <[email protected]>
Committer: Raphael Coeffic <[email protected]>
Date:   Fri Feb  3 11:18:46 2012 +0100

b/f: fix uninitialized int values in constructor.

- removed the superfluous constructor as well.

---

 core/AmB2BSession.cpp |   16 +++-------------
 core/AmB2BSession.h   |    3 +--
 2 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/core/AmB2BSession.cpp b/core/AmB2BSession.cpp
index 79a115f..e853aae 100644
--- a/core/AmB2BSession.cpp
+++ b/core/AmB2BSession.cpp
@@ -38,25 +38,15 @@
 // AmB2BSession methods
 //
 
-AmB2BSession::AmB2BSession()
-  : sip_relay_only(true),
-    b2b_mode(B2BMode_Transparent),
-    rtp_relay_enabled(false),
-    rtp_relay_force_symmetric_rtp(false),
-    relay_rtp_interface(-1),
-    relay_rtp_streams(NULL), relay_rtp_streams_cnt(0),
-    rtp_relay_transparent_seqno(true), rtp_relay_transparent_ssrc(true),
-    est_invite_cseq(0),est_invite_other_cseq(0)
-{
-  memset(other_stream_fds,0,sizeof(int)*MAX_RELAY_STREAMS);
-}
-
 AmB2BSession::AmB2BSession(const string& other_local_tag)
   : other_id(other_local_tag),
     sip_relay_only(true),
+    b2b_mode(B2BMode_Transparent),
     rtp_relay_enabled(false),
     rtp_relay_force_symmetric_rtp(false),
+    relay_rtp_interface(-1),
     relay_rtp_streams(NULL), relay_rtp_streams_cnt(0),
+    rtp_relay_transparent_seqno(true), rtp_relay_transparent_ssrc(true),
     est_invite_cseq(0),est_invite_other_cseq(0)
 {
   memset(other_stream_fds,0,sizeof(int)*MAX_RELAY_STREAMS);
diff --git a/core/AmB2BSession.h b/core/AmB2BSession.h
index 0f648e7..95a3698 100644
--- a/core/AmB2BSession.h
+++ b/core/AmB2BSession.h
@@ -223,8 +223,7 @@ class AmB2BSession: public AmSession
   /** filter SDP body ( b2b_mode == SDPFilter ) */
   virtual int filterBody(AmSdp& sdp, bool is_a2b);
 
-  AmB2BSession();
-  AmB2BSession(const string& other_local_tag);
+  AmB2BSession(const string& other_local_tag = "");
 
   virtual ~AmB2BSession();
 

_______________________________________________
Semsdev mailing list
[email protected]
http://lists.iptel.org/mailman/listinfo/semsdev

Reply via email to