mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-16 06:48:25 +00:00
ensure that items removed from a list are always unlinked from the list (next pointer set to NULL)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@46511 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -354,6 +354,7 @@ struct { \
|
|||||||
previous entry, if any).
|
previous entry, if any).
|
||||||
*/
|
*/
|
||||||
#define AST_LIST_REMOVE_CURRENT(head, field) \
|
#define AST_LIST_REMOVE_CURRENT(head, field) \
|
||||||
|
__new_prev->field.next = NULL; \
|
||||||
__new_prev = __list_prev; \
|
__new_prev = __list_prev; \
|
||||||
if (__list_prev) \
|
if (__list_prev) \
|
||||||
__list_prev->field.next = __list_next; \
|
__list_prev->field.next = __list_next; \
|
||||||
|
|||||||
Reference in New Issue
Block a user