[svn-commits] russell: branch 1.8 r359452 - /branches/1.8/include/asterisk/app.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Mar 14 17:26:32 CDT 2012


Author: russell
Date: Wed Mar 14 17:26:28 2012
New Revision: 359452

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

Modified:
    branches/1.8/include/asterisk/app.h

Modified: branches/1.8/include/asterisk/app.h
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/include/asterisk/app.h?view=diff&rev=359452&r1=359451&r2=359452
==============================================================================
--- branches/1.8/include/asterisk/app.h (original)
+++ branches/1.8/include/asterisk/app.h Wed Mar 14 17:26:28 2012
@@ -432,7 +432,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 svn-commits mailing list