From fc6389aa6a03de5c88ea89a75f0992e65f7c4dc8 Mon Sep 17 00:00:00 2001 From: "\"Steven J. Hill\"" Date: Fri, 17 Mar 2006 03:00:05 +0000 Subject: Fix 'realloc' and revert previous changes to tests. malloc tests all pass regardless of the setting of MALLOC_GLIBC_COMPAT. --- libc/stdlib/malloc-standard/realloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libc/stdlib/malloc-standard') diff --git a/libc/stdlib/malloc-standard/realloc.c b/libc/stdlib/malloc-standard/realloc.c index ae2d33bee..f25d6d989 100644 --- a/libc/stdlib/malloc-standard/realloc.c +++ b/libc/stdlib/malloc-standard/realloc.c @@ -52,7 +52,7 @@ void* realloc(void* oldmem, size_t bytes) return malloc(bytes); if (! bytes) { free (oldmem); - return malloc(bytes); + return NULL; } LOCK; -- cgit v1.2.3