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>2001-06-04 18:29:54 +0400
committerCorinna Vinschen <corinna@vinschen.de>2001-06-04 18:29:54 +0400
commitf7fa593d6b33a17dd543ea12df02625c409ecf0e (patch)
tree63021ea0fa9ffdd61294238ea7150b66d7671c7d /winsup/cygwin/cygheap.h
parentac5561f2ed95d2ffcb81723d9556aadc1768ca04 (diff)
* cygheap.h (cygheap_user::cygheap_user): Initialize token to
INVALID_HANDLE_VALUE. * uinfo.cc (uinfo_init): Close token handle if needed.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h3
1 files changed, 2 insertions, 1 deletions
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);