Patch: set value of static variables in cipher/random.c

Philip Kendall pak21 at srcf.ucam.org
Fri Jul 7 17:18:26 CEST 2006


On Fri, Jul 07, 2006 at 05:10:45PM +0200, haypo at inl.fr wrote:
> 
> I'm not sure, but I think that a static variable have "undefined value".
> So I don't understand how the code is working without value initialization
> :-)

"The C standard" (not sure exactly which one) specifies that static
variables are initialised to zero.

Cheers,

Phil

-- 
"This is the first official broadcast of the new Voice of the
Resistance. [...] You can kill us. You can bomb our colonies, destroy our
ships, murder innocent civilians. But you cannot kill the truth. And the
truth is back in business."     Ivanova: Babylon 5: Conflicts of Interest



More information about the Gcrypt-devel mailing list