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

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@412549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Jonathan Rose
2014-04-17 22:42:16 +00:00
parent a365f9100f
commit 8baf0ae036

View File

@@ -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;