Module: kamailio
Branch: master
Commit: 42265d011f40f4f8ec90799489db120b156ef6e1
URL:
https://github.com/kamailio/kamailio/commit/42265d011f40f4f8ec90799489db120…
Author: Henning Westerholt <hw(a)kamailio.org>
Committer: Henning Westerholt <hw(a)kamailio.org>
Date: 2018-06-01T22:46:03+02:00
sipt: fix warning about uninitialized variable
---
Modified: src/modules/sipt/sipt.c
---
Diff:
https://github.com/kamailio/kamailio/commit/42265d011f40f4f8ec90799489db120…
Patch:
https://github.com/kamailio/kamailio/commit/42265d011f40f4f8ec90799489db120…
---
diff --git a/src/modules/sipt/sipt.c b/src/modules/sipt/sipt.c
index 8c7f3f03a8..a1f0b348d1 100644
--- a/src/modules/sipt/sipt.c
+++ b/src/modules/sipt/sipt.c
@@ -689,7 +689,7 @@ static int sipt_destination2(struct sip_msg *msg, char *_destination,
char *_hop
unsigned int int_nai = 0;
str2int(nai, &int_nai);
str * terminator = (str*)_terminator;
- unsigned int int_terminator;
+ unsigned int int_terminator = 0; /* if the str2int later fail */
str2int(terminator, &int_terminator);
str * destination = (str*)_destination;
struct sdp_mangler mangle;