diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 1999-07-07 21:01:20 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 1999-07-07 21:01:20 +0000 |
commit | 65b97b034e13e8407c9bc1b086371e712419f9b2 (patch) | |
tree | ad879dec30670231742047cbf8cda2dee318058a /lib/libc | |
parent | c58b5cffa14bfdcab1d190acb733982b3a87d5c3 (diff) | |
download | src-65b97b034e13e8407c9bc1b086371e712419f9b2.tar.gz src-65b97b034e13e8407c9bc1b086371e712419f9b2.zip |
Back out previous commit after discussing it with Dmitrij Tejblum.
Notes
Notes:
svn path=/head/; revision=48672
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 ca18d56d64ba..50ef6db787d1 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); } |