Subject: Re: Replacement for grep(1) (part 2)
To: Jason Thorpe <thorpej@nas.nasa.gov>
From: Dag-Erling Smorgrav <des@flood.ping.uio.no>
List: tech-userlevel
Date: 07/07/1999 21:12:47
[accidentally b0rked the cc: line; apologies to those who get this twice]

Jason Thorpe <thorpej@nas.nasa.gov> writes:
> On 07 Jul 1999 20:57:16 +0200 
>  Dag-Erling Smorgrav <des@flood.ping.uio.no> wrote:
>  > Don't use err() indiscriminately after a malloc() failure; malloc()
>  > doesn't set errno.
> This is a bug in malloc(3), is it not?

According to the Single Unix Specification, yes.

   <URL:http://www.opengroup.org/onlinepubs/007908799/xsh/malloc.html>

DES
-- 
Dag-Erling Smorgrav - des@flood.ping.uio.no