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:
authorChristopher Faylor <me@cgf.cx>2002-06-16 09:26:14 +0400
committerChristopher Faylor <me@cgf.cx>2002-06-16 09:26:14 +0400
commit5f25e1d11a9760dd4728ae3a82c23884f50e244e (patch)
tree636eb589c7afe0357881d1276b272b9f7231cca9 /winsup/cygwin/cygheap.cc
parent5c8bce24b36e8cbbc107a43d8dfff0a9402ba5fd (diff)
* cygheap.h (cygheap_user::winname): New field.
* cygheap.cc (cygheap_user::set_name): Clear winname when name changes. * uinfo.cc (cygheap_user::env_logsrv): Avoid calculating server when Windows user == SYSTEM. (cygheap_user::env_domain): Set winname here too. (cygheap_user::env_userprofile): Eliminate superfluous tests. (cygheap_user::env_name): Seed winname by calling env_domain().
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index aba80c61d..9b0a2a24a 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -449,7 +449,9 @@ cygheap_user::set_name (const char *new_name)
cfree (plogsrv);
if (pdomain)
cfree (pdomain);
- plogsrv = pdomain = NULL;
+ if (winname)
+ cfree (winname);
+ plogsrv = pdomain = winname = NULL;
}
BOOL