This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior


On Mar 5,  5:06pm, Kevin Buettner wrote:

> I have tested this patch on i386-unknown-freebsd4.2 and
> i686-pc-linux-gnu and do not see any regressions.
> 
> 	* utils.c (xmrealloc, xcalloc): Return NULL for zero-sized requests.

Another data point: I've just tested this patch on sparc-sun-solaris2.7
and all's well...

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]