Browse code

nathelper: initialize local variable

(cherry picked from commit c814f9fb6aa20ae18253f0d165795516a8869085)

Luis Azedo authored on 01/10/2018 12:57:00
Showing 1 changed files
... ...
@@ -1646,7 +1646,7 @@ static int ki_fix_nated_sdp(sip_msg_t *msg, int level)
1646 1646
 static int fix_nated_sdp_f(struct sip_msg *msg, char *str1, char *str2)
1647 1647
 {
1648 1648
 	int level;
1649
-	str ip;
1649
+	str ip = {0,0};
1650 1650
 
1651 1651
 	if(fixup_get_ivalue(msg, (gparam_t *)str1, &level) != 0) {
1652 1652
 		LM_ERR("failed to get value for first parameter\n");