FS-11785 [libteletone] Fix dead assignment in teletone_dtmf_detect
This commit is contained in:
parent
7187e8ecd2
commit
8925519e02
|
@ -317,11 +317,10 @@ TELETONE_API(teletone_hit_type_t) teletone_dtmf_detect (teletone_dtmf_detect_sta
|
|||
int sample;
|
||||
int best_row;
|
||||
int best_col;
|
||||
char hit;
|
||||
char hit = 0;
|
||||
int limit;
|
||||
teletone_hit_type_t r = 0;
|
||||
|
||||
hit = 0;
|
||||
for (sample = 0; sample < samples; sample = limit) {
|
||||
/* BLOCK_LEN is optimised to meet the DTMF specs. */
|
||||
if ((samples - sample) >= (BLOCK_LEN - dtmf_detect_state->current_sample)) {
|
||||
|
|
Loading…
Reference in New Issue