[asterisk-commits] dlee: trunk r386054 - in /trunk: ./ main/cli.c

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


Author: dlee
Date: Fri Apr 19 00:20:02 2013
New Revision: 386054

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=386054
Log:
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

Modified:
    trunk/   (props changed)
    trunk/main/cli.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-11-merged' - no diff available.

Modified: trunk/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/cli.c?view=diff&rev=386054&r1=386053&r2=386054
==============================================================================
--- trunk/main/cli.c (original)
+++ trunk/main/cli.c Fri Apr 19 00:20:02 2013
@@ -102,9 +102,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