Bladeren bron

Core:msg_translator.c fixed compiler warnings about unintialized vars

Marius Zbihlei 13 jaren geleden
bovenliggende
commit
ff8746504b
1 gewijzigde bestanden met toevoegingen van 6 en 6 verwijderingen
  1. 6 6
      msg_translator.c

+ 6 - 6
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