From 6734179425e967d3d5ca759fa7deaa730de5353c Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 16 Jul 2002 12:20:40 +0000 Subject: Odd. Got a copy of junk in here. --- libc/stdlib/malloc-930716/malloc.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libc/stdlib') 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 @@ -170,15 +170,6 @@ static void * malloc_unlocked (size_t size) size_t log, block, blocks, i, lastblocks, start; struct list *next; -#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 1 /* Some programs will call malloc (0). Lets be strict and return NULL */ if (size == 0) -- cgit v1.2.3