Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index c12c326eb..2e6100a3a 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1330,6 +1330,7 @@ fhandler_base::operator delete (void *p)
/* Normal I/O constructor */
fhandler_base::fhandler_base (DWORD devtype, int unit):
+ status (devtype),
access (0),
io_handle (NULL),
namehash (0),
@@ -1343,7 +1344,6 @@ fhandler_base::fhandler_base (DWORD devtype, int unit):
win32_path_name (NULL),
open_status (0)
{
- status = devtype;
int bin = __fmode & O_TEXT ? 0 : 1;
if (status != FH_DISK && status != FH_CONSOLE)
{
@@ -1372,7 +1372,6 @@ fhandler_base::~fhandler_base (void)
fhandler_disk_file::fhandler_disk_file () :
fhandler_base (FH_DISK)
{
- set_cb (sizeof *this);
}
int
@@ -1601,7 +1600,6 @@ fhandler_disk_file::lock (int cmd, struct flock *fl)
fhandler_dev_null::fhandler_dev_null () :
fhandler_base (FH_NULL)
{
- set_cb (sizeof *this);
}
void