Merged revisions 19303 via svnmerge from
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Apr 2006 20:48:57 +0000 (20:48 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Apr 2006 20:48:57 +0000 (20:48 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r19303 | file | 2006-04-11 17:46:38 -0300 (Tue, 11 Apr 2006) | 2 lines

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/trunk@19304 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/linkedlists.h

index 8bff72e..94e57f1 100644 (file)
@@ -486,6 +486,7 @@ struct {                                                            \
                                (head)->last = curelm;                          \
                } \
        }                                                               \
+        (elm)->field.next = NULL;                                       \
 } while (0)
 
 #endif /* _ASTERISK_LINKEDLISTS_H */