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:
parent
2b8bc286ef
commit
1f0d723c1e
1 changed files with 1 additions and 0 deletions
|
@ -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); \
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue