Module: kamailio
Branch: master
Commit: 619ff95d760c9b98df515ddccc5aa1e39275beeb
URL:
https://github.com/kamailio/kamailio/commit/619ff95d760c9b98df515ddccc5aa1e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-10-25T10:08:42+02:00
nats: init global variables
---
Modified: src/modules/nats/nats_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/619ff95d760c9b98df515ddccc5aa1e…
Patch:
https://github.com/kamailio/kamailio/commit/619ff95d760c9b98df515ddccc5aa1e…
---
diff --git a/src/modules/nats/nats_mod.c b/src/modules/nats/nats_mod.c
index 6d26b621ec..344466a586 100644
--- a/src/modules/nats/nats_mod.c
+++ b/src/modules/nats/nats_mod.c
@@ -35,14 +35,14 @@ nats_consumer_worker_t *nats_workers = NULL;
nats_pub_worker_t *nats_pub_workers = NULL;
int nats_pub_workers_num = DEFAULT_NUM_PUB_WORKERS;
-int _nats_proc_count;
+static int _nats_proc_count = 0;
char *eventData = NULL;
int *nats_pub_worker_pipes_fds = NULL;
int *nats_pub_worker_pipes = NULL;
static str nats_event_callback = STR_NULL;
-static nats_evroutes_t _nats_rts;
+static nats_evroutes_t _nats_rts = {0};
static pv_export_t nats_mod_pvs[] = {
{{"natsData", (sizeof("natsData") - 1)}, PVT_OTHER,