From: Chris Rienzo Date: Mon, 15 Apr 2019 20:02:47 +0000 (+0000) Subject: FS-11785 [libteletone] Fix dead assignment in teletone_dtmf_detect X-Git-Tag: v1.8.6~1^2~33 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8925519e02e7582a4d4bdbcb7c67f7acbc7b75a2;p=thirdparty%2Ffreeswitch.git FS-11785 [libteletone] Fix dead assignment in teletone_dtmf_detect --- diff --git a/libs/libteletone/src/libteletone_detect.c b/libs/libteletone/src/libteletone_detect.c index f25fea73ff..7debc553dd 100644 --- a/libs/libteletone/src/libteletone_detect.c +++ b/libs/libteletone/src/libteletone_detect.c @@ -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)) {