diff options
author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-03-17 03:00:05 +0000 |
---|---|---|
committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2006-03-17 03:00:05 +0000 |
commit | fc6389aa6a03de5c88ea89a75f0992e65f7c4dc8 (patch) | |
tree | 9c9f29c56d961284d621ea9756425a5e73e74c56 /libc/stdlib/malloc-standard/realloc.c | |
parent | 18811a88f74a8a0d2d54e275cd632b47817458a1 (diff) |
Fix 'realloc' and revert previous changes to tests. malloc tests all pass regardless of the setting of MALLOC_GLIBC_COMPAT.
Diffstat (limited to 'libc/stdlib/malloc-standard/realloc.c')
-rw-r--r-- | libc/stdlib/malloc-standard/realloc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |