tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/bin/csh



On Thu, Apr 25, 2024 at 12:06:07AM +0200, Thomas Klausner wrote:
> On Wed, Apr 24, 2024 at 03:46:20PM +0000, Nia Alarie wrote:
> > Module Name:	src
> > Committed By:	nia
> > Date:		Wed Apr 24 15:46:20 UTC 2024
> > 
> > Modified Files:
> > 	src/bin/csh: alloc.c extern.h
> > 
> > Log Message:
> > csh: add a reallocarray function for using inside csh
> 
> Why not use reallocarray(3) directly?
>  Thomas

csh has its own error handling for allocation failures and I don't
want to break that.

If I was going to add error checking for NULL everywhere I'd rather
use reallocarr


Home | Main Index | Thread Index | Old Index