summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@tungstengraphics.com>2008-04-29 00:41:40 +0100
committerAlan Hourihane <alanh@tungstengraphics.com>2008-04-29 00:41:40 +0100
commitb707104f4dba0963ab17c1d6a29c1e3a848ea408 (patch)
treee7ced9c81c9bad36f77354ae0ec18f3b27367121
parente6b525aefc05b5203391699b00053ad52243cc6b (diff)
silence warning
-rwxr-xr-x[-rw-r--r--]src/authutil.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/authutil.c b/src/authutil.c
index c1d1aee..9cb3deb 100644..100755
--- a/src/authutil.c
+++ b/src/authutil.c
@@ -101,7 +101,7 @@ IceAuthFileName (void)
if ((ptr1 = getenv("HOMEDRIVE")) && (ptr2 = getenv("HOMEDIR"))) {
len1 = strlen (ptr1);
len2 = strlen (ptr2);
- } else if (ptr2 = getenv("USERNAME")) {
+ } else if ((ptr2 = getenv("USERNAME"))) {
len1 = strlen (ptr1 = "/users/");
len2 = strlen (ptr2);
}