mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user