This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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: Use xmalloc in tst-setcontext-fpscr.c (bug 19668)


On Tue, 6 Feb 2018, Florian Weimer wrote:

> On 02/01/2018 09:37 PM, Joseph Myers wrote:
> > -      auxv = (ElfW(auxv_t) *)malloc(getpagesize());
> > +      auxv = (ElfW(auxv_t) *) xmalloc (getpagesize ());
> 
> This is okay, but you might as well drop the cast.

Done.

-- 
Joseph S. Myers
joseph@codesourcery.com


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