Module: kamailio
Branch: master
Commit: 5ebe1758fb3ff03e3a035e7121f40e2539eb2c9c
URL:
https://github.com/kamailio/kamailio/commit/5ebe1758fb3ff03e3a035e7121f40e2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-12-22T09:32:10+01:00
ims_qos: fix build warning
CC (gcc) [M ims_qos.so] rx_avp.o
[...]
/usr/include/fortify/stdio.h:122:16: warning: 'int_port_rctp_a' may be used
uninitialized [-Wmaybe-uninitialized]
[...]
/usr/include/fortify/stdio.h:122:16: warning: 'int_port_rctp_b' may be used
uninitialized [-Wmaybe-uninitialized]
---
Modified: src/modules/ims_qos/rx_avp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5ebe1758fb3ff03e3a035e7121f40e2…
Patch:
https://github.com/kamailio/kamailio/commit/5ebe1758fb3ff03e3a035e7121f40e2…
---
diff --git a/src/modules/ims_qos/rx_avp.c b/src/modules/ims_qos/rx_avp.c
index d7d6abd9bc2..7a64d5e9713 100644
--- a/src/modules/ims_qos/rx_avp.c
+++ b/src/modules/ims_qos/rx_avp.c
@@ -670,7 +670,7 @@ AAA_AVP *rx_create_media_subcomponent_avp(int number, str *proto, str
*ipA,
str data;
int len, len2;
- int int_port_rctp_a, int_port_rctp_b;
+ int int_port_rctp_a = 0, int_port_rctp_b = 0;
str port_rtcp_a = STR_NULL, port_rtcp_b = STR_NULL;
AAA_AVP *flow_description1 = 0, *flow_description2 = 0,
*flow_description3 = 0, *flow_description4 = 0, *flow_number = 0;