diff options
Diffstat (limited to 'winsup/cygwin/uinfo.cc')
-rw-r--r-- | winsup/cygwin/uinfo.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/uinfo.cc b/winsup/cygwin/uinfo.cc index 9fc336d73..ae500049e 100644 --- a/winsup/cygwin/uinfo.cc +++ b/winsup/cygwin/uinfo.cc @@ -309,7 +309,7 @@ cygheap_user::test_uid (char *&what, const char *name, size_t namelen) if (what) return what; if (orig_uid == myself->uid) - what = getwinenveq (name, namelen, HEAP_STR) ?: almost_null; + what = getwinenveq (name, namelen, HEAP_STR); return what; } @@ -332,7 +332,7 @@ cygheap_user::env_logsrv (const char *name, size_t namelen) const char * cygheap_user::env_domain (const char *name, size_t namelen) { - if (test_uid (pdomain, name, namelen)) + if (pwinname && test_uid (pdomain, name, namelen)) return pdomain; char username[UNLEN + 1]; |