[sr-dev] git:5.3:15ce49ba: sipcapture: declare extern heptime in hep.c and init it to null

Daniel-Constantin Mierla miconda at gmail.com
Wed Mar 4 12:31:09 CET 2020


Module: kamailio
Branch: 5.3
Commit: 15ce49badcd67ec0a4227661b090c4e8318dd3cd
URL: https://github.com/kamailio/kamailio/commit/15ce49badcd67ec0a4227661b090c4e8318dd3cd

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-03-04T12:27:35+01:00

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

(cherry picked from commit 16bc15156ecc8a8f4f66c44b064db854d0e3e4e0)

---

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

---

Diff:  https://github.com/kamailio/kamailio/commit/15ce49badcd67ec0a4227661b090c4e8318dd3cd.diff
Patch: https://github.com/kamailio/kamailio/commit/15ce49badcd67ec0a4227661b090c4e8318dd3cd.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