Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Jul 1999 22:28:24 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Dmitrij Tejblum <tejblum@arc.hq.cti.ru>
Cc:        Dag-Erling Smorgrav <des@FreeBSD.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/stdlib malloc.c 
Message-ID:  <27983.931379304@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 08 Jul 1999 00:24:57 %2B0400." <199907072024.AAA88926@arc.hq.cti.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




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