[asterisk-commits] dlee: branch 11 r386051 - in /branches/11: ./ main/cli.c

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


Author: dlee
Date: Fri Apr 19 00:18:54 2013
New Revision: 386051

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

Modified:
    branches/11/   (props changed)
    branches/11/main/cli.c

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

Modified: branches/11/main/cli.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/main/cli.c?view=diff&rev=386051&r1=386050&r2=386051
==============================================================================
--- branches/11/main/cli.c (original)
+++ branches/11/main/cli.c Fri Apr 19 00:18:54 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