From: Andrey Volk Date: Thu, 20 Feb 2020 18:53:34 +0000 (+0400) Subject: [spandsp] scan-build: Fix "Result of operation is garbage or undefined" in rpe_grid_s... X-Git-Tag: v1.10.3^2~136^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8dd1e1be23533800fa688c8dd66fdcf2db309948;p=thirdparty%2Ffreeswitch.git [spandsp] scan-build: Fix "Result of operation is garbage or undefined" in rpe_grid_selection() --- 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;