OSDN Git Service

libc: Avoid redundant setting of ENOMEM
[uclinux-h8/uClibc.git] / libc / misc / dirent / opendir.c
index 66a5cc9..8af00f8 100644 (file)
@@ -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;
 }