diff options
author | David M. Lee <dlee@digium.com> | 2013-04-19 05:20:02 +0000 |
---|---|---|
committer | David M. Lee <dlee@digium.com> | 2013-04-19 05:20:02 +0000 |
commit | e61cc22404bfbf7e13ad8638b3c87af003a7cc3a (patch) | |
tree | 425dbffd8f5a829e387c14686bd67d0c5faadda1 /main/cli.c | |
parent | 9c696e665fde0e94b6d6aac20cf40bcb35ac94e6 (diff) |
cli.c: Properly initialize debug_modules and verbose_modules.
This avoids some lock errors on the core set {debug,verbose} commands.
........
Merged revisions 386049 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........
Merged revisions 386051 from http://svn.asterisk.org/svn/asterisk/branches/11
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@386054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/cli.c')
-rw-r--r-- | main/cli.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/main/cli.c b/main/cli.c index b4e2c369c..7782b2279 100644 --- a/main/cli.c +++ b/main/cli.c @@ -102,9 +102,9 @@ struct module_level { AST_RWLIST_HEAD(module_level_list, module_level); /*! list of module names and their debug levels */ -static struct module_level_list debug_modules; +static struct module_level_list debug_modules = AST_RWLIST_HEAD_INIT_VALUE; /*! list of module names and their verbose levels */ -static struct module_level_list verbose_modules; +static struct module_level_list verbose_modules = AST_RWLIST_HEAD_INIT_VALUE; AST_THREADSTORAGE(ast_cli_buf); |