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] |
On Sun, Jun 5, 2016 at 7:12 PM, Mike Frysinger <vapier@gentoo.org> wrote: > On 05 Jun 2016 19:00, Paul Pluzhnikov wrote: >> I think I can also remove this from xrealloc, since our realloc does >> the right thing when p==NULL. >> >> + if (p == 0) >> + return xmalloc (n); > > right, we don't want/need that > > i think all the use of 0 should be changed to NULL too I'll submit attached patch tomorrow if there are no further comments. Thanks, 2016-06-07 Paul Pluzhnikov <ppluzhnikov@google.com> * test-skeleton.c (oom_error, xmalloc, xcalloc, xrealloc): New functions. (add_temp_file): Use them. -- Paul Pluzhnikov
Attachment:
glibc-xmalloc-test-20160607.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |