diff options
Diffstat (limited to 'libc/stdlib/malloc-930716/malloc.c')
-rw-r--r-- | libc/stdlib/malloc-930716/malloc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/libc/stdlib/malloc-930716/malloc.c b/libc/stdlib/malloc-930716/malloc.c index 9f65caba9..d1f61d18e 100644 --- a/libc/stdlib/malloc-930716/malloc.c +++ b/libc/stdlib/malloc-930716/malloc.c @@ -179,15 +179,6 @@ static void * malloc_unlocked (size_t size) if (size < sizeof (struct list)) size = sizeof (struct list); -#if 1 - /* Some programs will call malloc (0). Lets be strict and return NULL */ - if (size == 0) - return NULL; -#endif - - if (size < sizeof (struct list)) - size = sizeof (struct list); - if (!initialized && !initialize()) { return NULL; } |