[sr-dev] git:master:16bc1515: sipcapture: declare extern heptime in hep.c and init it to null

Daniel-Constantin Mierla miconda at gmail.com
Tue Mar 3 09:16:25 CET 2020


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-03T09:11:59+01:00

sipcapture: declare extern heptime in hep.c and init it to null

---

Modified: src/modules/sipcapture/hep.c
Modified: src/modules/sipcapture/sipcapture.c

---

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

---

diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c
index 7606241074..2934c2c0d2 100644
--- a/src/modules/sipcapture/hep.c
+++ b/src/modules/sipcapture/hep.c
@@ -37,7 +37,7 @@
 
 static int count = 0;
 
-struct hep_timeinfo *heptime;
+extern struct hep_timeinfo *heptime;
 
 /* HEPv2 HEPv3 */
 int hepv2_received(char *buf, unsigned int len, struct receive_info *ri);
diff --git a/src/modules/sipcapture/sipcapture.c b/src/modules/sipcapture/sipcapture.c
index 5da37cbde7..094d6ea168 100644
--- a/src/modules/sipcapture/sipcapture.c
+++ b/src/modules/sipcapture/sipcapture.c
@@ -294,7 +294,7 @@ enum hash_source source = hs_error;
 
 //unsigned int rr_idx = 0;
 
-struct hep_timeinfo *heptime;
+struct hep_timeinfo *heptime = NULL;
 
 /*! \brief
  * Exported functions




More information about the sr-dev mailing list