]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
malloc: simplify
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:09:01 +0000 (11:09 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:49 +0000 (11:10 -0700)
* 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.

ChangeLog
lib/malloc.c

index e72362077ebd60f2e14190c29309bc23b09834ef..b013d915ff7a29eed0ede66e3fe0c29f61ce0e02 100644 (file)
--- 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
index a900046ec698c0c7eaee059a8fcd201de57ff2d4..30f791fb907f4a20f50b0c40b51fa5b0942839fd 100644 (file)
@@ -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 *