summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}