summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc-930716
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-07-16 12:20:40 +0000
committerEric Andersen <andersen@codepoet.org>2002-07-16 12:20:40 +0000
commit6734179425e967d3d5ca759fa7deaa730de5353c (patch)
tree54f8e55bf14fab47083b706bd6b01968ecf4aaad /libc/stdlib/malloc-930716
parent30b32340bd522f1b045626765ff402790362fd0c (diff)
Odd. Got a copy of junk in here.
Diffstat (limited to 'libc/stdlib/malloc-930716')
-rw-r--r--libc/stdlib/malloc-930716/malloc.c9
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;
}