From owner-cvs-all Wed Jul 7 13:25: 7 1999 Delivered-To: cvs-all@freebsd.org Received: from arc.hq.cti.ru (arc.hq.cti.ru [195.34.40.3]) by hub.freebsd.org (Postfix) with ESMTP id 9D3FD14D06; Wed, 7 Jul 1999 13:24:59 -0700 (PDT) (envelope-from tejblum@arc.hq.cti.ru) Received: from arc.hq.cti.ru (localhost [127.0.0.1]) by arc.hq.cti.ru (8.9.3/8.9.3) with ESMTP id AAA88926; Thu, 8 Jul 1999 00:24:57 +0400 (MSD) (envelope-from tejblum@arc.hq.cti.ru) Message-Id: <199907072024.AAA88926@arc.hq.cti.ru> X-Mailer: exmh version 2.0zeta 7/24/97 To: Dag-Erling Smorgrav Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdlib malloc.c In-reply-to: Your message of "Wed, 07 Jul 1999 12:54:09 PDT." <199907071954.MAA42538@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 08 Jul 1999 00:24:57 +0400 From: Dmitrij Tejblum Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk > 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