Question about the code...
Paul_Selkirk at isc.org
Fri Feb 6 20:00:37 UTC 2009
The C specification mandates that global variables that are not
explicitly initialized are set to 0 at program startup (before main is
called). This is safe and legal, although it may be a little
off-putting to the uninitiated.
> Date: Thu, 5 Feb 2009 14:47:02 -0500
> From: Robert Heller <heller at deepsoft.com>
> I just did some poking around in the source code for dhcp 3.0.1 (trying
> to trace where dhcpd is dropping the ball WRT root-path. The variable
> 'universe_count' is never explicitly initialized. I *guess* it is
> *impoliticly* initialized to 0, but isn't it a really, really, bad idea
> to assume implicit initialization to 0?
More information about the dhcp-users