From 685f59a675f17e0c7be5d297ceaf81e3f7536777 Mon Sep 17 00:00:00 2001 From: Tony Mountifield Date: Mon, 14 Oct 2024 15:20:25 +0100 Subject: [PATCH] Prevent uninitialised variable warning --- libs/opus/silk/NLSF2A.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/opus/silk/NLSF2A.c b/libs/opus/silk/NLSF2A.c index d5b7730638..8f472f25f7 100644 --- a/libs/opus/silk/NLSF2A.c +++ b/libs/opus/silk/NLSF2A.c @@ -80,7 +80,7 @@ void silk_NLSF2A( }; const unsigned char *ordering; opus_int k, i, dd; - opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ]; + opus_int32 cos_LSF_QA[ SILK_MAX_ORDER_LPC ] = {0}; opus_int32 P[ SILK_MAX_ORDER_LPC / 2 + 1 ], Q[ SILK_MAX_ORDER_LPC / 2 + 1 ]; opus_int32 Ptmp, Qtmp, f_int, f_frac, cos_val, delta; opus_int32 a32_QA1[ SILK_MAX_ORDER_LPC ];