From: Joshua Colp Date: Fri, 20 Jul 2007 16:49:13 +0000 (+0000) Subject: Move makeannouncement variable declaration to proper place. X-Git-Tag: 1.4.9~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=34b000a0e77b6bcf54508ec9adca501da53a02f9;p=thirdparty%2Fasterisk.git Move makeannouncement variable declaration to proper place. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76054 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_queue.c b/apps/app_queue.c index 241a8b8698..856a3eb9cd 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -3381,6 +3381,8 @@ static int queue_exec(struct ast_channel *chan, void *data) qe.last_periodic_announce_sound = 0; qe.valid_digits = 0; if (!join_queue(args.queuename, &qe, &reason)) { + int makeannouncement = 0; + ast_queue_log(args.queuename, chan->uniqueid, "NONE", "ENTERQUEUE", "%s|%s", S_OR(args.url, ""), S_OR(chan->cid.cid_num, "")); check_turns: @@ -3395,8 +3397,6 @@ check_turns: if (res) goto stop; - int makeannouncement = 0; - for (;;) { /* This is the wait loop for the head caller*/ /* To exit, they may get their call answered; */