Date: Mon, 3 Aug 2020 11:25:53 -0400 From: Rich Felker <dalias@...c.org> To: Wolf <wolf@...fsden.cz> Cc: musl@...ts.openwall.com, Ariadne Conill <ariadne@...eferenced.org> Subject: Re: [PATCH v4] implement recallocarray(3) On Mon, Aug 03, 2020 at 05:15:11PM +0200, Wolf wrote: > > On 2020-08-03 17:11:50 +0200, Wolf wrote: > > From reading openbsd's source I would say this should return 0 (or > > newptr), not ptr. Otherwise I'm not sure how the caller could tell if > > the resize failed or not. > > Or not, please ignore. I've got confused. Your original comment seems correct. Returning the old ptr on failure cannot be correct. Rich
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.