From 80bc465bf373fa4490a0cb54bee104ffe98f405c Mon Sep 17 00:00:00 2001 From: RichardG867 Date: Fri, 21 Jul 2023 16:02:01 -0300 Subject: [PATCH] WSS: Fix warning --- src/sound/snd_wss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sound/snd_wss.c b/src/sound/snd_wss.c index 576a4f182..274a0579e 100644 --- a/src/sound/snd_wss.c +++ b/src/sound/snd_wss.c @@ -79,14 +79,14 @@ static void wss_get_buffer(int32_t *buffer, int len, void *priv) { wss_t *wss = (wss_t *) priv; - int32_t *opl_buf; + int32_t *opl_buf = NULL; if (wss->opl_enabled) opl_buf = wss->opl.update(wss->opl.priv); ad1848_update(&wss->ad1848); for (int c = 0; c < len * 2; c++) { - if (wss->opl_enabled) + if (opl_buf) buffer[c] += opl_buf[c]; buffer[c] += wss->ad1848.buffer[c] / 2; }