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:
authorCorinna Vinschen <corinna@vinschen.de>2002-06-26 18:59:22 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-06-26 18:59:22 +0400
commit303af157426b4fdc013c325fca4f3a6e0a007861 (patch)
tree28dec77d372554d759c934a0437ee8ee5e4e547e
parent8698edb8ae42650a5222a2209b23ad513834b5e5 (diff)
* pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/pwdgrp.h3
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9fe94d0ea..33b377d92 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2002-06-26 Corinna Vinschen <corinna@vinschen.de>
+
+ * pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
+
2002-06-26 Christopher Faylor <cgf@redhat.com>
* dcrt0.cc (_dcrt0): Be more defensive when reserved block is used and
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h
index d2dcfcd1a..bab2da863 100644
--- a/winsup/cygwin/pwdgrp.h
+++ b/winsup/cygwin/pwdgrp.h
@@ -63,7 +63,8 @@ public:
: fh (INVALID_HANDLE_VALUE), buf (NULL), lptr (NULL), eptr (NULL) {}
virtual ~pwdgrp_read ()
{
- close ();
+ if (fh != INVALID_HANDLE_VALUE)
+ CloseHandle (fh);
if (buf)
free (buf);
}