summaryrefslogtreecommitdiff
path: root/libc/stdlib/malloc/realloc.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-13 07:34:57 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2015-04-13 07:34:57 +0200
commitdd64f5afc19274f4e92afde3d13d1e8f0d2ee2d5 (patch)
tree4c5d9ae03a3d530f2f615229d9c726f4fd39ad98 /libc/stdlib/malloc/realloc.c
parentfe109717435b9e62e24579559b3bf521d047d453 (diff)
parenta500a54bedc8081b9959cb03214047aead18b164 (diff)
Merge branch '1.0' of git+ssh://uclibc-ng.org/git/uclibc-ng into 1.0
Diffstat (limited to 'libc/stdlib/malloc/realloc.c')
-rw-r--r--libc/stdlib/malloc/realloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stdlib/malloc/realloc.c b/libc/stdlib/malloc/realloc.c
index 8de00665f..8d55289c5 100644
--- a/libc/stdlib/malloc/realloc.c
+++ b/libc/stdlib/malloc/realloc.c
@@ -30,7 +30,7 @@ realloc (void *mem, size_t new_size)
if (! new_size)
{
free (mem);
- return malloc (new_size);
+ return NULL;
}
if (! mem)
return malloc (new_size);