[PATCH] winbind kills nscd on Solaris

Mike Gerdts Michael.Gerdts at alcatel.com
Fri May 10 06:52:02 GMT 2002

On Fri, 2002-05-10 at 09:13, Mike Gerdts wrote:
> Does "" get allocated statically, or on the stack?  If it gets allocated
> on the stack, then garbage could replace it at some time in the future.
> Mike

I just found a copy of K&R and answered the question for myself.  For
anyone else that cares, K&R A2.6 says that string literals have a
storage type of static.  According to A4.1,

    Static objects may be local to a block or external to all blocks,
    but in either case retain their values across exit from and reentry
    to functions and blocks.


More information about the samba-technical mailing list