[asterisk-commits] dlee: branch 1.8 r386049 - /branches/1.8/main/cli.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Apr 19 00:18:15 CDT 2013


Author: dlee
Date: Fri Apr 19 00:18:13 2013
New Revision: 386049

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386049
Log:
cli.c: Properly initialize debug_modules and verbose_modules.

This avoids some lock errors on the core set {debug,verbose} commands.

Modified:
    branches/1.8/main/cli.c

Modified: branches/1.8/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/main/cli.c?view=diff&rev=386049&r1=386048&r2=386049
==============================================================================
--- branches/1.8/main/cli.c (original)
+++ branches/1.8/main/cli.c Fri Apr 19 00:18:13 2013
@@ -93,9 +93,9 @@
 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);
 




More information about the asterisk-commits mailing list