RE: [PATCH 1/1 net-next] af_unix: remove NULL assignment on static
From: David Laight
Date: Wed Oct 08 2014 - 05:12:04 EST
From: Hannes Frederic Sowa
> I think David's concern was whether if 0 == false in all situations. It
> is pretty clear that static memory is initialized to 0.
I'm not 100% sure about that.
static pointers may be required to be initialised to NULL.
If NULL isn't the 'all 0 bit pattern' then the memory would need
to be initialised to a different pattern.
Not that anyone is likely to implement such a system because far too
much code will break.
The only system I knew where 'native' NULL pointers were 'all 1s'
used 0 in its C compiler.