Minor linked lists bug fix. When you're dealing with swapping entries around a lot it can cause a seg fault.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@19303 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.2
Joshua Colp 20 years ago
parent 95dc3bba01
commit fb912bc629

@ -439,6 +439,7 @@ struct { \
if ((head)->last == (elm)) \
(head)->last = curelm; \
} \
(elm)->field.next = NULL; \
} while (0)
#endif /* _ASTERISK_LINKEDLISTS_H */

Loading…
Cancel
Save