mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Remove MALLOC_ZERO_RETURNS_NULL.
This commit is contained in:
parent
19cf4ee69d
commit
39f59b089d
6 changed files with 5 additions and 110 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue