[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: env behavior incorrect
From: |
Paul Jarc |
Subject: |
Re: env behavior incorrect |
Date: |
Mon, 02 Jun 2003 13:13:28 -0400 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) |
address@hidden (Paul Jarc) wrote:
> Jens Elkner <address@hidden> wrote:
>> Last but not least - why not
>> ...
>> static char *pointer2null = NULL;
>> ...
>> main(....) {
>> ...
>> if (ignore_environment)
>> environ = &pointer2null;
>
> I haven't looked at the code, but I know that environ's type is not
> char*, and it is not supposed to be NULL when the environment is
> empty.
Sorry, I was misreading your code. That might work. It's up to Jim
whether to use it, of course.
paul
Re: env behavior incorrect, Jim Meyering, 2003/06/03