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 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.

Thanks,
Florian


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