Browse code

Core:msg_translator.c fixed compiler warnings about unintialized vars

Marius Zbihlei authored on 04/04/2012 13:37:12
Showing 1 changed files
... ...
@@ -579,9 +579,9 @@ static inline int lumps_len(struct sip_msg* msg, struct lump* lumps,
579 579
 	struct lump* r;
580 580
 	str* send_address_str;
581 581
 	str* send_port_str;
582
-	str* recv_address_str;
583
-	str* recv_port_str;
584
-	int  recv_port_no;
582
+	str* recv_address_str = NULL;
583
+	str* recv_port_str = NULL;
584
+	int  recv_port_no = 0;
585 585
 	struct socket_info* send_sock;
586 586
 	
587 587
 
... ...
@@ -918,9 +918,9 @@ static inline void process_lumps(	struct sip_msg* msg,
918 918
 	int s_offset;
919 919
 	str* send_address_str;
920 920
 	str* send_port_str;
921
-	str* recv_address_str;
922
-	str* recv_port_str;
923
-	int  recv_port_no;
921
+	str* recv_address_str = NULL;
922
+	str* recv_port_str = NULL;
923
+	int  recv_port_no = 0;
924 924
 	struct socket_info* send_sock;
925 925
 
926 926
 #ifdef USE_COMP