mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Merged revisions 15896 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r15896 | kpfleming | 2006-03-28 18:32:10 -0600 (Tue, 28 Mar 2006) | 2 lines ensure that list traversal loops which skip entries properly update the 'previous entry' pointer so when entries _are_ removed the list does not get damaged ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15897 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -303,6 +303,7 @@ struct { \
|
|||||||
__list_next = (var) ? (var)->field.next : NULL; \
|
__list_next = (var) ? (var)->field.next : NULL; \
|
||||||
(var); \
|
(var); \
|
||||||
__list_prev = __new_prev, (var) = __list_next, \
|
__list_prev = __new_prev, (var) = __list_next, \
|
||||||
|
__new_prev = (var), \
|
||||||
__list_next = (var) ? (var)->field.next : NULL \
|
__list_next = (var) ? (var)->field.next : NULL \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user