Module: sip-router
Branch: master
Commit: ff8746504bf6688aaf440513896e4aeda40130d9
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=ff87465…
Author: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Committer: Marius Zbihlei <marius.zbihlei(a)1and1.ro>
Date: Wed Apr 4 16:37:12 2012 +0300
Core:msg_translator.c fixed compiler warnings about unintialized vars
---
msg_translator.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/msg_translator.c b/msg_translator.c
index 1979f51..1ef2032 100644
--- a/msg_translator.c
+++ b/msg_translator.c
@@ -579,9 +579,9 @@ static inline int lumps_len(struct sip_msg* msg, struct lump* lumps,
struct lump* r;
str* send_address_str;
str* send_port_str;
- str* recv_address_str;
- str* recv_port_str;
- int recv_port_no;
+ str* recv_address_str = NULL;
+ str* recv_port_str = NULL;
+ int recv_port_no = 0;
struct socket_info* send_sock;
@@ -918,9 +918,9 @@ static inline void process_lumps( struct sip_msg* msg,
int s_offset;
str* send_address_str;
str* send_port_str;
- str* recv_address_str;
- str* recv_port_str;
- int recv_port_no;
+ str* recv_address_str = NULL;
+ str* recv_port_str = NULL;
+ int recv_port_no = 0;
struct socket_info* send_sock;
#ifdef USE_COMP