mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
properly initialize non-static locks.
(Thanks Dinesh for tracking the bug and fixing it) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26954 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -363,6 +363,7 @@ struct { \
|
||||
#define AST_LIST_HEAD_INIT(head) { \
|
||||
(head)->first = NULL; \
|
||||
(head)->last = NULL; \
|
||||
(head)->lock = AST_MUTEX_INIT_VALUE; \
|
||||
ast_mutex_init(&(head)->lock); \
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user