diff options
-rw-r--r-- | src/authutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/authutil.c b/src/authutil.c index e3bad01..e2e5979 100644 --- a/src/authutil.c +++ b/src/authutil.c @@ -83,7 +83,7 @@ IceAuthFileName (void) name = getenv ("HOME"); - if (!name) + if (!name || !name[0]) { #ifdef WIN32 register char *ptr1; @@ -101,7 +101,7 @@ IceAuthFileName (void) snprintf (dir, sizeof(dir), "%s%s", ptr1, (ptr2) ? ptr2 : ""); name = dir; } - if (!name) + if (!name || !name[0]) #endif return (NULL); } |