[asterisk-dev] Re: [asterisk-commits] kpfleming: branch 1.4 r48998 - in /branches/1.4: include/asterisk/ main/

Luigi Rizzo rizzo at icir.org
Wed Dec 27 14:14:06 MST 2006


On Wed, Dec 27, 2006 at 09:08:31PM -0000, asterisk-commits at lists.digium.com wrote:
> Author: kpfleming
> Date: Wed Dec 27 15:08:30 2006
> New Revision: 48998
> 
> URL: http://svn.digium.com/view/asterisk?view=rev&rev=48998
> Log:
> move extern declaration for this option to a header file where it belongs

correct...

> provide an initial value for 'languageprefix' option, instead of relying on randomness to provide a useful value

It is not randomness but sound programming style!

Uninitialized global or static variables are defined as 0 by the
relevant C standards, and the 'uninitialized' version is preferred
because this way the variables don't take space in the image file:
only the total size is stored, and the loader initializes the memory
before giving control to the program.

It does not matter much for individual variables, but it does
for global arrays.

	cheers
	luigi


More information about the asterisk-dev mailing list