From 5278e0f0b4f94fb8503852d57c84adc49b04d161 Mon Sep 17 00:00:00 2001 From: Sebastian Reimers Date: Sat, 10 Aug 2024 17:57:24 +0200 Subject: [PATCH] sl/meters,ws: fix initializers --- libsl/src/meters.c | 4 ++-- libsl/src/ws.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libsl/src/meters.c b/libsl/src/meters.c index 1df99be..c870c5f 100644 --- a/libsl/src/meters.c +++ b/libsl/src/meters.c @@ -7,9 +7,9 @@ static float bias = 1.0f; static float peaks[MAX_METERS] = {0}; static float sent_peaks[MAX_METERS] = {0}; -static mtx_t *mutex; +static mtx_t *mutex = NULL; -static struct tmr tmr; +static struct tmr tmr = {.le = LE_INIT}; void sl_meter_process(unsigned int ch, float *in, unsigned long nframes) diff --git a/libsl/src/ws.c b/libsl/src/ws.c index 1b67fcb..72158fb 100644 --- a/libsl/src/ws.c +++ b/libsl/src/ws.c @@ -3,7 +3,7 @@ #include static struct websock *ws = NULL; -static struct list wsl; +static struct list wsl = LIST_INIT; struct ws_conn { struct le le; struct websock_conn *c;