[prev in list] [next in list] [prev in thread] [next in thread]
List: musl
Subject: Re: [musl] [PATCH v4] implement recallocarray(3)
From: Rich Felker <dalias () libc ! org>
Date: 2020-08-03 15:25:53
Message-ID: 20200803152553.GE6949 () brightrain ! aerifal ! cx
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic