mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 19:08:14 +00:00
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
This commit is contained in:
@@ -439,6 +439,7 @@ struct { \
|
|||||||
if ((head)->last == (elm)) \
|
if ((head)->last == (elm)) \
|
||||||
(head)->last = curelm; \
|
(head)->last = curelm; \
|
||||||
} \
|
} \
|
||||||
|
(elm)->field.next = NULL; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif /* _ASTERISK_LINKEDLISTS_H */
|
#endif /* _ASTERISK_LINKEDLISTS_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user