From f7fa593d6b33a17dd543ea12df02625c409ecf0e Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 4 Jun 2001 14:29:54 +0000 Subject: * cygheap.h (cygheap_user::cygheap_user): Initialize token to INVALID_HANDLE_VALUE. * uinfo.cc (uinfo_init): Close token handle if needed. --- winsup/cygwin/cygheap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'winsup/cygwin/cygheap.h') diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 6348590a2..a5c823f74 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -107,7 +107,8 @@ public: HANDLE token; BOOL impersonated; - cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL), psid (NULL) {} + cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL), + psid (NULL), token (INVALID_HANDLE_VALUE) {} ~cygheap_user (); void set_name (const char *new_name); -- cgit v1.2.3