From 8dd1e1be23533800fa688c8dd66fdcf2db309948 Mon Sep 17 00:00:00 2001
From: Andrey Volk <andywolk@gmail.com>
Date: Thu, 20 Feb 2020 22:53:34 +0400
Subject: [PATCH] [spandsp] scan-build: Fix "Result of operation is garbage or
 undefined" in rpe_grid_selection()

---
 libs/spandsp/src/gsm0610_rpe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libs/spandsp/src/gsm0610_rpe.c b/libs/spandsp/src/gsm0610_rpe.c
index b48fc74d32..3bd683b5d3 100644
--- a/libs/spandsp/src/gsm0610_rpe.c
+++ b/libs/spandsp/src/gsm0610_rpe.c
@@ -559,7 +559,7 @@ void gsm0610_rpe_encoding(gsm0610_state_t *s,
                           int16_t *Mc,
                           int16_t xMc[13])
 {
-    int16_t x[40];
+    int16_t x[40] = {0};
     int16_t xM[13];
     int16_t xMp[13];
     int16_t mant;