[sr-dev] git:master:3a25e489: seas: init variable to get rid of compile warning

Daniel-Constantin Mierla miconda at gmail.com
Sat Mar 26 13:21:24 CET 2016


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2016-03-26T13:01:01+01:00

seas: init variable to get rid of compile warning

---

Modified: modules/seas/encode_msg.c

---

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

---

diff --git a/modules/seas/encode_msg.c b/modules/seas/encode_msg.c
index e56b5fb..8f84ca6 100644
--- a/modules/seas/encode_msg.c
+++ b/modules/seas/encode_msg.c
@@ -148,7 +148,7 @@ char get_header_code(struct hdr_field *hf)
  */
 int encode_msg(struct sip_msg *msg,char *payload,int len)
 {
-   int i,j,k,u,request;
+   int i,j=0,k,u,request;
    unsigned short int h;
    struct hdr_field* hf;
    struct msg_start* ms;




More information about the sr-dev mailing list