From 3e6ccac195e61f572b0ac342d33ff9738e96a409 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 16 Oct 2003 10:13:53 +0000 Subject: Code formatting cleanup. --- libc/stdlib/malloc/realloc.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c index 9e6f880fe..85392ae6a 100644 --- a/libc/stdlib/malloc/realloc.c +++ b/libc/stdlib/malloc/realloc.c @@ -26,12 +26,13 @@ realloc (void *mem, size_t new_size) char *base_mem; /* Check for special cases. */ - if (!mem) - return malloc(new_size); - if (!new_size) { + if (! mem) + return malloc (new_size); + if (! new_size) + { free (mem); - return (malloc(new_size)); - } + return malloc (new_size); + } /* Normal realloc. */ -- cgit v1.2.3