[svn-commits] kpfleming: branch 1.2 r44296 - /branches/1.2/apps/app_queue.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Oct 3 13:14:14 MST 2006


Author: kpfleming
Date: Tue Oct  3 15:14:13 2006
New Revision: 44296

URL: http://svn.digium.com/view/asterisk?rev=44296&view=rev
Log:
fix a logic error in my previous fix to the queue reload code

Modified:
    branches/1.2/apps/app_queue.c

Modified: branches/1.2/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/apps/app_queue.c?rev=44296&r1=44295&r2=44296&view=diff
==============================================================================
--- branches/1.2/apps/app_queue.c (original)
+++ branches/1.2/apps/app_queue.c Tue Oct  3 15:14:13 2006
@@ -3405,11 +3405,15 @@
 				}
 
 				/* 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;



More information about the svn-commits mailing list