summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2021-04-21 11:09:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2021-04-21 11:10:49 -0700
commit147828bccdcbb7af648d24ef9eaa68e9cb6b89d2 (patch)
tree0eb602d17876d13979d1e201e16146aa6b1dbdef
parent7e605302f7ce70184af6a21de546da8b604f9c76 (diff)
downloadgnulib-147828bccdcbb7af648d24ef9eaa68e9cb6b89d2.tar.gz
gnulib-147828bccdcbb7af648d24ef9eaa68e9cb6b89d2.tar.bz2
malloc: simplify
* lib/malloc.c: Omit unnecessary "#undef malloc". I recently introduced it by mistake. This module defines _GL_USE_STDLIB_ALLOC and so malloc isn’t redefined to rpl_malloc.
-rw-r--r--ChangeLog5
-rw-r--r--lib/malloc.c3
2 files changed, 5 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e72362077e..b013d915ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2021-04-21 Paul Eggert <eggert@cs.ucla.edu>
+ malloc: simplify
+ * lib/malloc.c: Omit unnecessary "#undef malloc".
+ I recently introduced it by mistake. This module defines
+ _GL_USE_STDLIB_ALLOC and so malloc isn’t redefined to rpl_malloc.
+
malloca: avoid ptrdiff_t overflow
* lib/malloca.c: Include idx.h, intprops.h.
(mmalloca): Check for ptrdiff_t overflow. Since this module uses
diff --git a/lib/malloc.c b/lib/malloc.c
index a900046ec6..30f791fb90 100644
--- a/lib/malloc.c
+++ b/lib/malloc.c
@@ -26,9 +26,6 @@
#include "xalloc-oversized.h"
-/* Call the system's malloc below. */
-# undef malloc
-
/* Allocate an N-byte block of memory from the heap, even if N is 0. */
void *

Return to:

Send suggestions and report system problems to the System administrator.