[sr-dev] git:master:c814f9fb: nathelper: initialize local variable
lazedo
luis.azedo at factorlusitano.com
Mon Oct 1 17:13:11 CEST 2018
Module: kamailio
Branch: master
Commit: c814f9fb6aa20ae18253f0d165795516a8869085
URL: https://github.com/kamailio/kamailio/commit/c814f9fb6aa20ae18253f0d165795516a8869085
Author: Luis Azedo <luis at 2600hz.com>
Committer: lazedo <luis.azedo at factorlusitano.com>
Date: 2018-10-01T17:13:05+02:00
nathelper: initialize local variable
---
Modified: src/modules/nathelper/nathelper.c
---
Diff: https://github.com/kamailio/kamailio/commit/c814f9fb6aa20ae18253f0d165795516a8869085.diff
Patch: https://github.com/kamailio/kamailio/commit/c814f9fb6aa20ae18253f0d165795516a8869085.patch
---
diff --git a/src/modules/nathelper/nathelper.c b/src/modules/nathelper/nathelper.c
index bb9c99767f..27015b7bd8 100644
--- a/src/modules/nathelper/nathelper.c
+++ b/src/modules/nathelper/nathelper.c
@@ -1644,7 +1644,7 @@ static int ki_fix_nated_sdp(sip_msg_t *msg, int level)
static int fix_nated_sdp_f(struct sip_msg *msg, char *str1, char *str2)
{
int level;
- str ip;
+ str ip = {0,0};
if(fixup_get_ivalue(msg, (gparam_t *)str1, &level) != 0) {
LM_ERR("failed to get value for first parameter\n");
More information about the sr-dev
mailing list