diff --git a/libavcodec/lpc.c b/libavcodec/lpc.c
index 92c701beab1f45fda02d389e863fc5ac9c048960..896db51759dc2e06bd07f690a36f8e36f66b239a 100644
--- a/libavcodec/lpc.c
+++ b/libavcodec/lpc.c
@@ -123,7 +123,7 @@ int ff_lpc_calc_coefs(DSPContext *s,
             ref[i] = fabs(lpc[i][i]);
     }else{
         LLSModel m[2];
-        double var[MAX_LPC_ORDER+1], weight;
+        double var[MAX_LPC_ORDER+1], av_uninit(weight);
 
         for(pass=0; pass<use_lpc-1; pass++){
             av_init_lls(&m[pass&1], max_order);