Module: kamailio
Branch: master
Commit: 7f359ca152e87ec72c6dd39fe09885bae630e36f
URL:
https://github.com/kamailio/kamailio/commit/7f359ca152e87ec72c6dd39fe09885b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-05-03T20:59:49+02:00
lcr: init variable for fixing warning report
---
Modified: src/modules/lcr/lcr_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/7f359ca152e87ec72c6dd39fe09885b…
Patch:
https://github.com/kamailio/kamailio/commit/7f359ca152e87ec72c6dd39fe09885b…
---
diff --git a/src/modules/lcr/lcr_mod.c b/src/modules/lcr/lcr_mod.c
index 9647dde044..6f5eafdb22 100644
--- a/src/modules/lcr/lcr_mod.c
+++ b/src/modules/lcr/lcr_mod.c
@@ -1939,7 +1939,7 @@ static inline int decode_avp_value(char *value, unsigned int
*gw_index,
struct ip_addr *addr, str *hostname, str *port, str *params,
str *transport, unsigned int *flags, unsigned int *rule_id)
{
- unsigned int u;
+ unsigned int u = 0;
str s;
char *sep;
struct ip_addr *ip;