[asterisk-commits] branch 1.2 r19303 - /branches/1.2/include/asterisk/linkedlists.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Apr 11 13:46:39 MST 2006


Author: file
Date: Tue Apr 11 15:46:38 2006
New Revision: 19303

URL: http://svn.digium.com/view/asterisk?rev=19303&view=rev
Log:
Minor linked lists bug fix. When you're dealing with swapping entries around a lot it can cause a seg fault.

Modified:
    branches/1.2/include/asterisk/linkedlists.h

Modified: branches/1.2/include/asterisk/linkedlists.h
URL: http://svn.digium.com/view/asterisk/branches/1.2/include/asterisk/linkedlists.h?rev=19303&r1=19302&r2=19303&view=diff
==============================================================================
--- branches/1.2/include/asterisk/linkedlists.h (original)
+++ branches/1.2/include/asterisk/linkedlists.h Tue Apr 11 15:46:38 2006
@@ -439,6 +439,7 @@
 		if ((head)->last == (elm))				\
 			(head)->last = curelm;				\
 	}								\
+        (elm)->field.next = NULL;                                       \
 } while (0)
 
 #endif /* _ASTERISK_LINKEDLISTS_H */



More information about the asterisk-commits mailing list