From 16bc15156ecc8a8f4f66c44b064db854d0e3e4e0 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Tue, 3 Mar 2020 09:11:59 +0100 Subject: [PATCH] sipcapture: declare extern heptime in hep.c and init it to null --- src/modules/sipcapture/hep.c | 2 +- src/modules/sipcapture/sipcapture.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/sipcapture/hep.c b/src/modules/sipcapture/hep.c index 76062410744..2934c2c0d20 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 5da37cbde78..094d6ea1688 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