From 623036f36901184e5fe3e54285bb8a58b05099de Mon Sep 17 00:00:00 2001 From: Donat Zenichev Date: Fri, 2 Jun 2023 08:39:33 +0200 Subject: [PATCH] MT#57501 'max_per' may be used uninitialized Fix for: doCPLC.c: In function 'doThePLC': doCPLC.c:261:29: warning: 'max_per' may be used uninitialized [-Wmaybe-uninitialized] 261 | iLBCdec_inst->per=max_per; | ~~~~~~~~~~~~~~~~~^~~~~~~~ doCPLC.c:93:42: note: 'max_per' declared here 93 | float gain_comp, maxcc_comp, per, max_per; | ^~~~~~~ Change-Id: I7af6e280836d3cbbc8860c2c5b9a732f658ccc40 --- core/plug-in/ilbc/iLBC_rfc3951/doCPLC.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/plug-in/ilbc/iLBC_rfc3951/doCPLC.c b/core/plug-in/ilbc/iLBC_rfc3951/doCPLC.c index adbfac71..59d92526 100644 --- a/core/plug-in/ilbc/iLBC_rfc3951/doCPLC.c +++ b/core/plug-in/ilbc/iLBC_rfc3951/doCPLC.c @@ -256,7 +256,7 @@ /* update state */ - if (PLI) { + if (PLI == 1) { iLBCdec_inst->prevLag = lag; iLBCdec_inst->per=max_per; }