Variables declared outside of (before) main() have zero for contents if not specified.
2013/6/14 sven falempin <sven.falem...@gmail.com> > Hello > > Does the chain automatically set a parameter so C var are set to zero by > default ? > > curl http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/nc/netcat > .c?rev=1.112;content-type=text%2Fplain > grep Sflag > > If I compile this in release Slfag has a random value when tested or the > value 1 if the flag -S is set. > > Or is it because the kernel do some kind of calloc instead of malloc while > loading process ? so it is always zero memmory. > > Cheers. > > -- > > --------------------------------------------------------------------------------------------------------------------- > () ascii ribbon campaign - against html e-mail > /\ > -- May the most significant bit of your life be positive.