[asterisk-commits] trunk r26954 - /trunk/include/asterisk/linkedlists.h

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu May 11 08:50:25 MST 2006


Author: rizzo
Date: Thu May 11 10:50:25 2006
New Revision: 26954

URL: http://svn.digium.com/view/asterisk?rev=26954&view=rev
Log:
properly initialize non-static locks.
(Thanks Dinesh for tracking the bug and fixing it)


Modified:
    trunk/include/asterisk/linkedlists.h

Modified: trunk/include/asterisk/linkedlists.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/linkedlists.h?rev=26954&r1=26953&r2=26954&view=diff
==============================================================================
--- trunk/include/asterisk/linkedlists.h (original)
+++ trunk/include/asterisk/linkedlists.h Thu May 11 10:50:25 2006
@@ -363,6 +363,7 @@
 #define AST_LIST_HEAD_INIT(head) {					\
 	(head)->first = NULL;						\
 	(head)->last = NULL;						\
+	(head)->lock = AST_MUTEX_INIT_VALUE;				\
 	ast_mutex_init(&(head)->lock);					\
 }
 



More information about the asterisk-commits mailing list