diff --git a/apps/app_queue.c b/apps/app_queue.c
index 8c3cc9b4db1394e7d63a8dc432b3c9ccda1ee5c9..fde483895061fb888135ceb956c03c9d22976097 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3773,7 +3773,6 @@ static int queue_function_var(struct ast_channel *chan, const char *cmd, char *d
 {
 	int res = -1;
 	struct call_queue *q;
-	struct member *m;
 
 	char interfacevar[256]="";
         float sl = 0;
@@ -3822,6 +3821,7 @@ static int queue_function_qac(struct ast_channel *chan, const char *cmd, char *d
 {
 	int count = 0;
 	struct call_queue *q;
+	struct member *m;
 
 	buf[0] = '\0';