summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authordes <des@FreeBSD.org>1999-07-07 21:01:20 +0000
committerdes <des@FreeBSD.org>1999-07-07 21:01:20 +0000
commitdfaa48d6e021eb0c57a315d8f98552ab8ec7927b (patch)
treed3ce2aced59f69d32fd4f49b7a387314b44d696e /lib/libc/stdlib
parent8987e649cabd70b2ea58775df4210d9bd98872ca (diff)
downloadFreeBSD-src-dfaa48d6e021eb0c57a315d8f98552ab8ec7927b.zip
FreeBSD-src-dfaa48d6e021eb0c57a315d8f98552ab8ec7927b.tar.gz
Back out previous commit after discussing it with Dmitrij Tejblum.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/malloc.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/stdlib/malloc.c b/lib/libc/stdlib/malloc.c
index ca18d56..50ef6db 100644
--- a/lib/libc/stdlib/malloc.c
+++ b/lib/libc/stdlib/malloc.c
@@ -1081,8 +1081,6 @@ malloc(size_t size)
THREAD_UNLOCK();
if (malloc_xmalloc && !r)
wrterror("out of memory.\n");
- if (!r)
- errno = ENOMEM;
return (r);
}
@@ -1135,8 +1133,6 @@ realloc(void *ptr, size_t size)
THREAD_UNLOCK();
if (malloc_xmalloc && !r)
wrterror("out of memory.\n");
- if (!r)
- errno = ENOMEM;
return (r);
}
OpenPOWER on IntegriCloud