Re: [PATCH 2/4] short circuit out of a few places where we would allocate zero bytes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: H. Peter Anvin
Date: Wednesday, December 28, 2005 - 9:58 am

Linus Torvalds wrote:

Yeah, although that might break GNU code which uses xmalloc that is 
included (GNU doesn't have xfree.)  The easiest is just to allocate 1 
byte when the user asks for 0.

Anyone knows what GNU xmalloc does?

	-hpa
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/4] dietlibc compatibility, Eric Wong, (Sat Dec 24, 5:10 am)
Re: [PATCH 2/4] short circuit out of a few places where we ..., Johannes Schindelin, (Sat Dec 24, 5:44 am)
Re: [PATCH 3/4] add xmktime() function that always account ..., Johannes Schindelin, (Sat Dec 24, 5:45 am)
[PATCH] Avoid allocating 0 bytes, was Re: [PATCH 4/4] git- ..., Johannes Schindelin, (Mon Dec 26, 11:16 am)
Re: [PATCH] Avoid allocating 0 bytes, was Re: [PATCH 4/4] ..., Johannes Schindelin, (Mon Dec 26, 1:34 pm)
[PATCH] avoid asking ?alloc() for zero bytes., Junio C Hamano, (Mon Dec 26, 3:03 pm)
Re: [PATCH] avoid asking ?alloc() for zero bytes., Johannes Schindelin, (Mon Dec 26, 3:18 pm)
Re: [PATCH 2/4] short circuit out of a few places where we ..., H. Peter Anvin, (Wed Dec 28, 9:58 am)
Re: [PATCH] Avoid allocating 0 bytes, was Re: [PATCH 4/4] ..., Johannes Schindelin, (Wed Dec 28, 1:38 pm)