From: Russell Bryant Date: Wed, 14 Mar 2012 22:37:01 +0000 (+0000) Subject: app.h: Always initialize AST_DECLARE_APP_ARGS(). X-Git-Tag: 10.3.0~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ebd1d352f38b99a1eb1a6681fa19b397f96e02c;p=thirdparty%2Fasterisk.git 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 git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/10@359454 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 87f7c80ede..edc6530619 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -432,7 +432,7 @@ int ast_app_group_list_unlock(void); 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.