[asterisk-dev] [asterisk-commits] oej: branch 1.4 r242226 - /branches/1.4/channels/chan_sip.c
Kevin P. Fleming
kpfleming at digium.com
Fri Jan 22 07:20:20 CST 2010
SVN commits to the Asterisk project wrote:
> Author: oej
> Date: Fri Jan 22 03:19:30 2010
> New Revision: 242226
>
> URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=242226
> Log:
> Initialize notify_types to NULL
>
>
> Modified:
> branches/1.4/channels/chan_sip.c
>
> Modified: branches/1.4/channels/chan_sip.c
> URL: http://svnview.digium.com/svn/asterisk/branches/1.4/channels/chan_sip.c?view=diff&rev=242226&r1=242225&r2=242226
> ==============================================================================
> --- branches/1.4/channels/chan_sip.c (original)
> +++ branches/1.4/channels/chan_sip.c Fri Jan 22 03:19:30 2010
> @@ -1267,7 +1267,7 @@
> static int ourport;
> static struct sockaddr_in debugaddr;
>
> -static struct ast_config *notify_types; /*!< The list of manual NOTIFY types we know how to send */
> +static struct ast_config *notify_types = NULL; /*!< The list of manual NOTIFY types we know how to send */
>
> /*---------------------------- Forward declarations of functions in chan_sip.c */
> /*! \note This is added to help splitting up chan_sip.c into several files
This is unnecessary, as documented in the coding guidelines. File-scope
static variables are always initialized to zero by the compiler/linker,
as defined in the C language specification.
--
Kevin P. Fleming
Digium, Inc. | Director of Software Technologies
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
skype: kpfleming | jabber: kpfleming at digium.com
Check us out at www.digium.com & www.asterisk.org
More information about the asterisk-dev
mailing list