]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
cli.c: Properly initialize debug_modules and verbose_modules.
authorDavid M. Lee <dlee@digium.com>
Fri, 19 Apr 2013 05:18:13 +0000 (05:18 +0000)
committerDavid M. Lee <dlee@digium.com>
Fri, 19 Apr 2013 05:18:13 +0000 (05:18 +0000)
This avoids some lock errors on the core set {debug,verbose} commands.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@386049 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/cli.c

index c7b3a575d08a872133b80e2b3c5045d12e707541..751974485d1fb1a5bedbb7e969f8c36548533594 100644 (file)
@@ -93,9 +93,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);