Always initialize dtmfbuf
authorMark Spencer <markster@digium.com>
Mon, 28 Apr 2003 02:28:27 +0000 (02:28 +0000)
committerMark Spencer <markster@digium.com>
Mon, 28 Apr 2003 02:28:27 +0000 (02:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@923 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index e15ebe3..8db1366 100755 (executable)
@@ -3677,6 +3677,7 @@ static void *ss_thread(void *data)
                        else 
                                ast_dsp_digitmode(p->dsp,DSP_DIGITMODE_DTMF | p->dtmfrelax);
                }
+               dtmfbuf[0] = 0;
                /* Wait for the first digit only if immediate=no */
                if (((p->sig == SIG_EM) || (p->sig == SIG_EMWINK)) && !p->immediate)
                        /* Wait for the first digit (up to 5 seconds). */