[sr-dev] git:master:682f9984: dialog: init variable to fix warning

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 11 09:03:20 CET 2022


Module: kamailio
Branch: master
Commit: 682f9984fc4942d5f786f0ca9d798630d618f8da
URL: https://github.com/kamailio/kamailio/commit/682f9984fc4942d5f786f0ca9d798630d618f8da

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2022-01-11T09:02:35+01:00

dialog: init variable to fix warning

---

Modified: src/modules/dialog/dlg_dmq.c

---

Diff:  https://github.com/kamailio/kamailio/commit/682f9984fc4942d5f786f0ca9d798630d618f8da.diff
Patch: https://github.com/kamailio/kamailio/commit/682f9984fc4942d5f786f0ca9d798630d618f8da.patch

---

diff --git a/src/modules/dialog/dlg_dmq.c b/src/modules/dialog/dlg_dmq.c
index 38dc105fb8..36d43f90f3 100644
--- a/src/modules/dialog/dlg_dmq.c
+++ b/src/modules/dialog/dlg_dmq.c
@@ -106,7 +106,7 @@ int dlg_dmq_handle_msg(struct sip_msg* msg, peer_reponse_t* resp, dmq_node_t* no
 	srjson_t *it = NULL;
 
 	dlg_dmq_action_t action = DLG_DMQ_NONE;
-	dlg_iuid_t iuid;
+	dlg_iuid_t iuid = {0};
 	str profiles = {0, 0}, callid = {0, 0}, tag1 = {0,0}, tag2 = {0,0},
 		contact1 = {0,0}, contact2 = {0,0}, k={0,0}, v={0,0};
 	str cseq1 = {0,0}, cseq2 = {0,0}, route_set1 = {0,0}, route_set2 = {0,0},




More information about the sr-dev mailing list