aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-03 20:19:32 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-10-03 20:19:32 +0000
commit6f409d72755be3a40e9dfa025dcd5e5f2b0a8e13 (patch)
treeaa1e2d08b0a16c0a3f6bf8a855db6c326588954d /apps
parent18fb3f988ec12631a237c44a1be2b023409f0593 (diff)
Merged revisions 44298 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ................ r44298 | kpfleming | 2006-10-03 15:18:29 -0500 (Tue, 03 Oct 2006) | 10 lines Merged revisions 44296 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r44296 | kpfleming | 2006-10-03 15:14:13 -0500 (Tue, 03 Oct 2006) | 2 lines fix a logic error in my previous fix to the queue reload code ........ ................ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@44299 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r--apps/app_queue.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c
index e3b6ea605..0895476a7 100644
--- a/apps/app_queue.c
+++ b/apps/app_queue.c
@@ -3807,11 +3807,15 @@ static int reload_queues(void)
}
/* Free remaining members marked as delme */
- for (prev = NULL, cur = q->members, next = cur ? cur->next : NULL;
+ for (prev = NULL, cur = q->members;
cur;
- cur = next, next = cur ? cur->next : NULL) {
- if (!cur->delme)
+ cur = next) {
+ next = cur->next;
+
+ if (!cur->delme) {
+ prev = cur;
continue;
+ }
if (prev)
prev->next = next;