Date: Mon, 7 Jul 1997 18:56:16 +0300 (IDT) From: Eli Zaretskii To: Molnar Laszlo cc: DJGPP Workers Subject: Re: bug in system() In-Reply-To: <33C0F8C3.2F2F4CB4@cdata.tvnet.hu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 7 Jul 1997, Molnar Laszlo wrote: > if (!shell) > shell = command_com; > > like in _shell_command(), because _is_unixy_shell() can receive > a NULL pointer which list_member() will dereference, if there is no > SHELL or COMSPEC environment variable (this is the case in a perl > test script). Please explain how did you get into a situation where there's no COMSPEC. AFAIK, it should be always defined on MS-DOS. If I'm right, comspec is never a NULL pointer.