From owner-cvs-all Wed Jul 7 13:29:16 1999 Delivered-To: cvs-all@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.40.131]) by hub.freebsd.org (Postfix) with ESMTP id 611FE1549A; Wed, 7 Jul 1999 13:29:09 -0700 (PDT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.9.3/8.9.2) with ESMTP id WAA27985; Wed, 7 Jul 1999 22:28:24 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Dmitrij Tejblum Cc: Dag-Erling Smorgrav , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/lib/libc/stdlib malloc.c In-reply-to: Your message of "Thu, 08 Jul 1999 00:24:57 +0400." <199907072024.AAA88926@arc.hq.cti.ru> Date: Wed, 07 Jul 1999 22:28:24 +0200 Message-ID: <27983.931379304@critter.freebsd.dk> From: Poul-Henning Kamp Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk In message <199907072024.AAA88926@arc.hq.cti.ru>, Dmitrij Tejblum writes: >> 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, why don't get into the habbit of looking at the code before you ask silly questions ? :-) -- Poul-Henning Kamp FreeBSD coreteam member phk@FreeBSD.ORG "Real hackers run -current on their laptop." FreeBSD -- It will take a long time before progress goes too far! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message