https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r46511 | kpfleming | 2006-10-30 15:46:07 -0600 (Mon, 30 Oct 2006) | 2 lines
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/trunk@46512
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
previous entry, if any).
*/
#define AST_LIST_REMOVE_CURRENT(head, field) \
+ __new_prev->field.next = NULL; \
__new_prev = __list_prev; \
if (__list_prev) \
__list_prev->field.next = __list_next; \