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:
Luigi Rizzo 2006-05-11 15:50:25 +00:00
parent 2b8bc286ef
commit 1f0d723c1e

View file

@ -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); \
}