]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Move makeannouncement variable declaration to proper place.
authorJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 16:49:13 +0000 (16:49 +0000)
committerJoshua Colp <jcolp@digium.com>
Fri, 20 Jul 2007 16:49:13 +0000 (16:49 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@76054 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_queue.c

index 241a8b8698899952fea05693dcf8a30626af850d..856a3eb9cd61a12157cc7684b016d1c99014245f 100644 (file)
@@ -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; */