Subject: Re: execve call from Linux emul to NetBSD native problem ?
To: None <tech-kern@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 11/24/2003 15:14:43
> The "offending" lines look like this :
> #OPERA_LD_PRELOAD="${LD_PRELOAD}"
> #export OPERA_LD_PRELOAD
> Stange enough, this seems to both setenv OPERA_LD_PRELOAD and
> LD_PRELOAD to (nil), that is to say "" or (char *) 0 :)
First, those lines are comments, so they shouldn't set anything to
anything. Second, "" and (char *)0 are not at all the same thing - the
former is[%] a pointer to a byte containing zero; the latter is a nil
pointer-to-char, a pointer that does not point to anything.
[%] Strictly speaking, it's array[1] of char, initialized to {0}, which
in most contexts decays to the pointer I describe.
/~\ The ASCII der Mouse
\ / Ribbon Campaign
X Against HTML mouse@rodents.montreal.qc.ca
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B