mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-02-09 09:17:34 +00:00
Merge pull request #381 from dragos-oancea/spandsp-sig_tone-uninitialized-value
[core] scan-build: Function call argument is an uninitialized value - sig_tone_rx()
This commit is contained in:
commit
b3348c2dca
@ -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)
|
||||
int16_t x;
|
||||
int32_t v;
|
||||
int16_t notched_signal[3];
|
||||
int16_t notched_signal[3] = {0};
|
||||
int16_t bandpass_signal;
|
||||
int16_t signal;
|
||||
#else
|
||||
float x;
|
||||
float v;
|
||||
float notched_signal[3];
|
||||
float notched_signal[3] = {0};
|
||||
float bandpass_signal;
|
||||
float signal;
|
||||
#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 l;
|
||||
int m;
|
||||
int32_t notch_power[3];
|
||||
int32_t notch_power[3] = {0};
|
||||
int32_t flat_power;
|
||||
int immediate;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user