Module: kamailio
Branch: master
Commit: 16bc15156ecc8a8f4f66c44b064db854d0e3e4e0
URL:
https://github.com/kamailio/kamailio/commit/16bc15156ecc8a8f4f66c44b064db85…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)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/16bc15156ecc8a8f4f66c44b064db85…
Patch:
https://github.com/kamailio/kamailio/commit/16bc15156ecc8a8f4f66c44b064db85…
---
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