[core] scan-build: Function call argument is an uninitialized value - sig_tone_rx()

This commit is contained in:
Dragos Oancea 2020-02-17 21:33:13 +00:00
parent e99c434fd5
commit 0cb4e193f6
1 changed files with 3 additions and 3 deletions

View File

@ -394,13 +394,13 @@ SPAN_DECLARE(int) sig_tone_rx(sig_tone_rx_state_t *s, int16_t amp[], int len)
#if defined(SPANDSP_USE_FIXED_POINT) #if defined(SPANDSP_USE_FIXED_POINT)
int16_t x; int16_t x;
int32_t v; int32_t v;
int16_t notched_signal[3]; int16_t notched_signal[3] = {0};
int16_t bandpass_signal; int16_t bandpass_signal;
int16_t signal; int16_t signal;
#else #else
float x; float x;
float v; float v;
float notched_signal[3]; float notched_signal[3] = {0};
float bandpass_signal; float bandpass_signal;
float signal; float signal;
#endif #endif
@ -409,7 +409,7 @@ SPAN_DECLARE(int) sig_tone_rx(sig_tone_rx_state_t *s, int16_t amp[], int len)
int k; int k;
int l; int l;
int m; int m;
int32_t notch_power[3]; int32_t notch_power[3] = {0};
int32_t flat_power; int32_t flat_power;
int immediate; int immediate;