summaryrefslogtreecommitdiff
path: root/src/w32.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/w32.c b/src/w32.c
index dbb090d61f9..56b840df797 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -3126,8 +3126,6 @@ sys_open (const char * path, int oflag, int mode)
int res = _open (mpath, (oflag & ~_O_CREAT) | _O_NOINHERIT, mode);
if (res < 0)
res = _open (mpath, oflag | _O_NOINHERIT, mode);
- if (res >= 0 && res < MAXDESC)
- fd_info[res].flags = 0;
return res;
}