[asterisk-commits] russell: trunk r359456 - in /trunk: ./ include/asterisk/app.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 14 17:41:25 CDT 2012


Author: russell
Date: Wed Mar 14 17:41:21 2012
New Revision: 359456

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=359456
Log:
app.h: Always initialize AST_DECLARE_APP_ARGS().

This patch ensures that the struct defined by AST_DECLARE_APP_ARGS() is always
fully initialized.  I'm not sure if this fixes any real bugs, but it silences
a bunch of warnings from coverity, and is generally a good thing to do anyway.
........

Merged revisions 359452 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 359454 from http://svn.asterisk.org/svn/asterisk/branches/10

Modified:
    trunk/   (props changed)
    trunk/include/asterisk/app.h

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

Modified: trunk/include/asterisk/app.h
URL: http://svnview.digium.com/svn/asterisk/trunk/include/asterisk/app.h?view=diff&rev=359456&r1=359455&r2=359456
==============================================================================
--- trunk/include/asterisk/app.h (original)
+++ trunk/include/asterisk/app.h Wed Mar 14 17:41:21 2012
@@ -452,7 +452,7 @@
   ast_app_separate_args() will perform that function before parsing
   the arguments.
  */
-#define AST_DECLARE_APP_ARGS(name, arglist) AST_DEFINE_APP_ARGS_TYPE(, arglist) name
+#define AST_DECLARE_APP_ARGS(name, arglist) AST_DEFINE_APP_ARGS_TYPE(, arglist) name = { 0, }
 
 /*!
   \brief Define a structure type to hold an application's arguments.




More information about the asterisk-commits mailing list