Fix a silly shadowed variable mistake that was missed from play tones patch

........

Merged revisions 412549 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@412550 65c4cc65-6c06-0410-ace0-fbb531ad65f3
changes/97/197/1
Jonathan Rose 11 years ago
parent a8742e327f
commit c76608f24b

@ -1140,7 +1140,7 @@ int ast_control_tone(struct ast_channel *chan, const char *tone)
struct ast_tone_zone *zone = NULL;
struct ast_tone_zone_sound *ts;
int paused = 0;
int res;
int res = 0;
const char *tone_indication = NULL;
const char *tone_zone = NULL;
@ -1168,7 +1168,6 @@ int ast_control_tone(struct ast_channel *chan, const char *tone)
for (;;) {
struct ast_frame *fr;
int res;
if (ast_waitfor(chan, -1) < 0) {
res = -1;

Loading…
Cancel
Save