[asterisk-commits] branch 1.2 - r7508
/branches/1.2/include/asterisk/linkedlists.h
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Dec 16 19:02:31 CST 2005
Author: tilghman
Date: Fri Dec 16 19:02:29 2005
New Revision: 7508
URL: http://svn.digium.com/view/asterisk?rev=7508&view=rev
Log:
We want to check the previous value, not the current value (which was just changed).
Modified:
branches/1.2/include/asterisk/linkedlists.h
Modified: branches/1.2/include/asterisk/linkedlists.h
URL: http://svn.digium.com/view/asterisk/branches/1.2/include/asterisk/linkedlists.h?rev=7508&r1=7507&r2=7508&view=diff
==============================================================================
--- branches/1.2/include/asterisk/linkedlists.h (original)
+++ branches/1.2/include/asterisk/linkedlists.h Fri Dec 16 19:02:29 2005
@@ -381,7 +381,8 @@
used to link entries of this list together.
Note: The link field in the appended entry is \b not modified, so if it is
- actually the head of a list itself, the entire list will be appended.
+ actually the head of a list itself, the entire list will be appended
+ temporarily (until the next AST_LIST_INSERT_TAIL is performed).
*/
#define AST_LIST_INSERT_TAIL(head, elm, field) do { \
if (!(head)->first) { \
@@ -431,7 +432,7 @@
while (curelm->field.next != (elm)) \
curelm = curelm->field.next; \
curelm->field.next = (elm)->field.next; \
- if ((head)->last == curelm->field.next) \
+ if ((head)->last == (elm)) \
(head)->last = curelm; \
} \
} while (0)
More information about the asterisk-commits
mailing list