]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
properly initialize non-static locks.
authorLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 15:50:25 +0000 (15:50 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Thu, 11 May 2006 15:50:25 +0000 (15:50 +0000)
(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

include/asterisk/linkedlists.h

index 94e57f1e6470b12792b58fb3d08cc910ac25acc6..48f13a9715c99d33221efae3c834f783e64593ba 100644 (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);                                  \
 }