aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-15 16:16:47 +0000
committermmichelson <mmichelson@f38db490-d61c-443f-a65b-d21fe96a405b>2008-12-15 16:16:47 +0000
commit5267c784dbcc31acc5b1cf824de3fc2b5ae6b161 (patch)
tree7824c90d18869abc00168dcadb84401088c0db7f /apps
parent3de4b6e83989a360484657d753acb9bc2d03004a (diff)
Fix a compile warning and a logic error that could have been bad
for non-realtime queues git-svn-id: http://svn.digium.com/svn/asterisk/trunk@164270 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index d5c837b70..07b7db186 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -5721,7 +5721,7 @@ static char *__queues_show(struct mansession *s, int fd, int argc, char **argv)
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 @@ static char *__queues_show(struct mansession *s, int fd, int argc, char **argv)
ao2_unlock(q);
queue_unref(q);
continue;
- } else {
+ } else if (q->realtime) {
queue_unref(realtime_queue);
}
if (argc == 3 && strcasecmp(q->name, argv[2])) {