summaryrefslogtreecommitdiffstats
path: root/Objects/obmalloc.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-11-23 09:13:40 (GMT)
commit39f59b089dde8c4badaa510dd47d6d93d5eaed3d (patch)
tree4b5aaeb5f2b479a161873c060cbfd16a2d591fb3 /Objects/obmalloc.c
parent19cf4ee69d414b3bf849cb2a4f00bfed70f1c76b (diff)
downloadcpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.zip
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.gz
cpython-39f59b089dde8c4badaa510dd47d6d93d5eaed3d.tar.bz2
Remove MALLOC_ZERO_RETURNS_NULL.
Diffstat (limited to 'Objects/obmalloc.c')
-rw-r--r--Objects/obmalloc.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/Objects/obmalloc.c b/Objects/obmalloc.c
index a72d05a..cd85657 100644
--- a/Objects/obmalloc.c
+++ b/Objects/obmalloc.c
@@ -688,10 +688,8 @@ redirect:
* last chance to serve the request) or when the max memory limit
* has been reached.
*/
-#ifdef MALLOC_ZERO_RETURNS_NULL
if (nbytes == 0)
nbytes = 1;
-#endif
return (void *)malloc(nbytes);
}