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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2017-01-30T18:30:26+01:00

ims_dialog: init vars to avoid compile warnings

---

Modified: src/modules/ims_dialog/dlg_handlers.c

---

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

---

diff --git a/src/modules/ims_dialog/dlg_handlers.c 
b/src/modules/ims_dialog/dlg_handlers.c
index ea356aa..52b0934 100644
--- a/src/modules/ims_dialog/dlg_handlers.c
+++ b/src/modules/ims_dialog/dlg_handlers.c
@@ -1153,10 +1153,10 @@ void dlg_onreply(struct cell* t, int type, struct 
tmcb_params *param) {
     dlg_cell_t *dlg = NULL;
     dlg_iuid_t *iuid = NULL;
     struct dlg_cell_out *dlg_out = 0;
-    char *event_s;
+    char *event_s = 0;
 
     int new_state, old_state, unref, event;
-    str to_tag={0,0}, to_uri, branch={0,0};
+    str to_tag={0,0}, to_uri={0,0}, branch={0,0};
     struct sip_msg *req = param->req;
     struct sip_msg *rpl = param->rpl;
     struct dlg_entry_out* dlg_entry_out = 0;
@@ -1164,13 +1164,16 @@ void dlg_onreply(struct cell* t, int type, struct 
tmcb_params *param) {
     char* cb_type_s = tm_type_to_string(type);
 
     if (t && t->fwded_totags)
-        LM_DBG("ONREPLY CALL_BACK from TM received and type is [%i] = [%s] and 
TO is [%.*s]\n", type, cb_type_s, t->fwded_totags->tag.len, 
t->fwded_totags->tag.s);
+               LM_DBG("ONREPLY CALL_BACK from TM received and type is [%i] = 
[%s]"
+                               " and TO is [%.*s]\n", type, cb_type_s, 
t->fwded_totags->tag.len,
+                               t->fwded_totags->tag.s);
     else
-        LM_DBG("ONREPLY CALL_BACK from TM received and type is [%i] = [%s]\n", 
type, cb_type_s);
+        LM_DBG("ONREPLY CALL_BACK from TM received and type is [%i] = [%s]\n",
+                       type, cb_type_s);
 
     if (shutdown_done)
         return;
-    
+
     iuid = (dlg_iuid_t*) (*param->param);
     dlg = dlg_get_by_iuid(iuid);
     if (dlg == 0)


_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to