summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/stdlib/malloc-930716/malloc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/stdlib/malloc-930716/malloc.c b/libc/stdlib/malloc-930716/malloc.c
index e8f7c7004..88c9251ad 100644
--- a/libc/stdlib/malloc-930716/malloc.c
+++ b/libc/stdlib/malloc-930716/malloc.c
@@ -127,8 +127,8 @@ malloc (size_t size)
if (!initialized && !initialize())
return NULL;
- /* Some programs will call malloc (0). We let them pass. */
-#if 0
+#if 1
+ /* Some programs will call malloc (0). Lets be strict and return NULL */
if (size == 0)
return NULL;
#endif