Re: [PATCH] avoid asking ?alloc() for zero bytes.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Dec 26, 2005, 22:18 UTC
- Message-ID
- <Pine.LNX.4.63.0512262316150.32161@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <7vslsfikii.fsf_-_@assigned-by-dhcp.cox.net>
Hi,
On Mon, 26 Dec 2005, Junio C Hamano wrote:
Show 10 quoted lines
> Avoid asking for zero bytes when that change simplifies overall > logic. Later we would change the wrapper to ask for 1 byte on > platforms that return NULL for zero byte request. > > Signed-off-by: Junio C Hamano <junkio@cox.net> > > --- > > * Here is what I have now that roughly corresponds to your > patch, which has been somewhat tested.
Thanks.
> The final phase of making sure we return something from > x*alloc() is not done yet.
Tomorrow I'll compare the two patches and find out what, if anything, is needed.
Ciao, Dscho