aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 15:50:25 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-05-11 15:50:25 +0000
commit806ae5e8dcd5cfdc3a51ced0e3d873295de778d4 (patch)
treed05b390cc832d1eddc9fb18bd5e760887e0ef076 /include
parent908b47f7aa5eff5b84e78fdf52b39e011af6c1fb (diff)
properly initialize non-static locks.
(Thanks Dinesh for tracking the bug and fixing it) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@26954 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/linkedlists.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asterisk/linkedlists.h b/include/asterisk/linkedlists.h
index 94e57f1e6..48f13a971 100644
--- a/include/asterisk/linkedlists.h
+++ b/include/asterisk/linkedlists.h
@@ -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); \
}