Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 08 Jul 1999 00:24:57 +0400
From:      Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib malloc.c 
Message-ID:  <199907072024.AAA88926@arc.hq.cti.ru>
In-Reply-To: Your message of "Wed, 07 Jul 1999 12:54:09 PDT." <199907071954.MAA42538@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
> des         1999/07/07 12:54:09 PDT
> 
>   Modified files:
>     lib/libc/stdlib      malloc.c 
>   Log:
>   Always set errno to ENOMEM when returning 0 from malloc() or realloc().

Eh? What's wrong with ENOMEM set by sbrk()? (If malloc() somehow fail for 
other reason than lack of memory you should not overwrite errno, either.)

Dima




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907072024.AAA88926>