FS-11785 [libteletone] Fix dead assignment in teletone_dtmf_detect

This commit is contained in:
Chris Rienzo 2019-04-15 20:02:47 +00:00 committed by Mike Jerris
parent 7187e8ecd2
commit 8925519e02
1 changed files with 1 additions and 2 deletions

View File

@ -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)) {