]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Minor linked lists bug fix. When you're dealing with swapping entries around a lot...
authorJoshua Colp <jcolp@digium.com>
Tue, 11 Apr 2006 20:46:38 +0000 (20:46 +0000)
committerJoshua Colp <jcolp@digium.com>
Tue, 11 Apr 2006 20:46:38 +0000 (20:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@19303 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/linkedlists.h

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