diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-06-26 14:59:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-06-26 14:59:22 +0000 |
commit | 303af157426b4fdc013c325fca4f3a6e0a007861 (patch) | |
tree | 28dec77d372554d759c934a0437ee8ee5e4e547e /winsup/cygwin/pwdgrp.h | |
parent | 8698edb8ae42650a5222a2209b23ad513834b5e5 (diff) | |
download | newlib-303af157426b4fdc013c325fca4f3a6e0a007861.zip newlib-303af157426b4fdc013c325fca4f3a6e0a007861.tar.gz newlib-303af157426b4fdc013c325fca4f3a6e0a007861.tar.bz2 |
* pwdgrp.h (pwdgrp_read::~pwdgrp_read): Avoid compiler warning.
Diffstat (limited to 'winsup/cygwin/pwdgrp.h')
-rw-r--r-- | winsup/cygwin/pwdgrp.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/pwdgrp.h b/winsup/cygwin/pwdgrp.h index d2dcfcd..bab2da8 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); } |