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

Author: Juha Heinanen <[email protected]>
Committer: Juha Heinanen <[email protected]>
Date:   Wed Apr 11 20:57:12 2012 +0300

core/sip/parse_next_hop.cpp: fixed missing include and compiler warnings

---

 core/sip/parse_next_hop.cpp |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/core/sip/parse_next_hop.cpp b/core/sip/parse_next_hop.cpp
index 10a63c5..588f903 100644
--- a/core/sip/parse_next_hop.cpp
+++ b/core/sip/parse_next_hop.cpp
@@ -1,3 +1,4 @@
+#include <stdio.h>
 #include "parse_next_hop.h"
 #include "parse_common.h"
 
@@ -16,9 +17,9 @@ int parse_next_hop(const cstring& next_hop,
 
   const char* c = next_hop.s;
   const char* end = c + next_hop.len;
-  const char* beg;
+  const char* beg = NULL;
 
-  host_port hp;
+  host_port hp = {};
 
   for(;c<end; c++) {
 

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

Reply via email to