diff options
author | des <des@FreeBSD.org> | 1999-07-07 21:01:20 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 1999-07-07 21:01:20 +0000 |
commit | dfaa48d6e021eb0c57a315d8f98552ab8ec7927b (patch) | |
tree | d3ce2aced59f69d32fd4f49b7a387314b44d696e /lib/libc | |
parent | 8987e649cabd70b2ea58775df4210d9bd98872ca (diff) | |
download | FreeBSD-src-dfaa48d6e021eb0c57a315d8f98552ab8ec7927b.zip FreeBSD-src-dfaa48d6e021eb0c57a315d8f98552ab8ec7927b.tar.gz |
Back out previous commit after discussing it with Dmitrij Tejblum.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/malloc.c | 4 |
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); } |