summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-01-19 22:49:10 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-01-22 11:39:24 +0100
commit920db6d3935c86aff1b4fd0096ce6b5e3605d20d (patch)
tree52a5bf033372732018de77d7bd243cb3304ee981 /libc/misc
parent78b154a95b507c205241dd883396952e0dfbede7 (diff)
libc: Avoid redundant setting of ENOMEM
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/dirent/opendir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/dirent/opendir.c b/libc/misc/dirent/opendir.c
index 66a5cc9e9..8af00f88c 100644
--- a/libc/misc/dirent/opendir.c
+++ b/libc/misc/dirent/opendir.c
@@ -110,7 +110,7 @@ DIR *opendir(const char *name)
if (!ptr) {
close_not_cancel_no_status(fd);
- __set_errno(ENOMEM);
+ /* __set_errno(ENOMEM); */
}
return ptr;
}