[asterisk-commits] mmichelson: trunk r164270 - /trunk/apps/app_queue.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Dec 15 10:16:47 CST 2008


Author: mmichelson
Date: Mon Dec 15 10:16:47 2008
New Revision: 164270

URL: http://svn.digium.com/view/asterisk?view=rev&rev=164270
Log:
Fix a compile warning and a logic error that could have been bad
for non-realtime queues


Modified:
    trunk/apps/app_queue.c

Modified: trunk/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_queue.c?view=diff&rev=164270&r1=164269&r2=164270
==============================================================================
--- trunk/apps/app_queue.c (original)
+++ trunk/apps/app_queue.c Mon Dec 15 10:16:47 2008
@@ -5721,7 +5721,7 @@
 	ao2_lock(queues);
 	while ((q = ao2_iterator_next(&queue_iter))) {
 		float sl;
-		struct call_queue *realtime_queue;
+		struct call_queue *realtime_queue = NULL;
 
 		ao2_lock(q);
 		/* This check is to make sure we don't print information for realtime
@@ -5732,7 +5732,7 @@
 			ao2_unlock(q);
 			queue_unref(q);
 			continue;
-		} else {
+		} else if (q->realtime) {
 			queue_unref(realtime_queue);
 		}
 		if (argc == 3 && strcasecmp(q->name, argv[2])) {




More information about the asterisk-commits mailing list