Browse Source

Odd. Got a copy of junk in here.

Eric Andersen 23 years ago
parent
commit
6734179425
1 changed files with 0 additions and 9 deletions
  1. 0 9
      libc/stdlib/malloc-930716/malloc.c

+ 0 - 9
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)