This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] avoid calling alloca(0)


On 11/19/2016 11:18 PM, Jakub Jelinek wrote:
On Sat, Nov 19, 2016 at 04:43:29PM -0700, Martin Sebor wrote:
Thanks for calling out the realloc(0, p) case!  Realloc(0, p) is

??  The DR you refer to deprecates realloc(p, 0), not realloc(0, p).

We are discussing zero size allocation so I was obviously referring
to realloc(p, 0).  Bernd had the arguments in the right order in
his message and I transposed them by mistake in my reply.

Martin


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