From 173259bb3b0d29e498e043bfbe06bea049d3b876 Mon Sep 17 00:00:00 2001 From: "David M. Lee" Date: Fri, 19 Apr 2013 05:18:54 +0000 Subject: [PATCH] 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/11@386051 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/cli.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/cli.c b/main/cli.c index 782d41363c..d64fd14360 100644 --- a/main/cli.c +++ b/main/cli.c @@ -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);