diff options
author | Luigi Rizzo <rizzo@icir.org> | 2006-05-11 15:50:25 +0000 |
---|---|---|
committer | Luigi Rizzo <rizzo@icir.org> | 2006-05-11 15:50:25 +0000 |
commit | 1f0d723c1e997d407b72e648d36385489d30b738 (patch) | |
tree | d05b390cc832d1eddc9fb18bd5e760887e0ef076 /include | |
parent | 2b8bc286ef3cb7b4ebac9b9dab4004b200b81578 (diff) |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/asterisk/linkedlists.h | 1 |
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); \ } |