$ git clone http://tcclient.ion.nu/tc_client.git
commit 89aab72dca8f959fbc1528053f41ca57b32c7ca5
Author: Alicia <...>
Date:   Sat Feb 13 15:04:38 2016 +0100

    tc_client-gtk: if HOME is not set use "." instead.

diff --git a/ChangeLog b/ChangeLog
index 269b9c5..44a3ee5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 0.38:
 Makefile: added missing sourcefiles for the tarball target.
+tc_client-gtk: if HOME is not set use "." instead.
 0.37:
 Reimplemented announcement of moderators.
 Reimplemented announcement of people cammed up when joining.
diff --git a/utilities/gtk/logging.c b/utilities/gtk/logging.c
index d9bcbb2..8502bdb 100644
--- a/utilities/gtk/logging.c
+++ b/utilities/gtk/logging.c
@@ -34,6 +34,7 @@ unsigned int logfilecount=0;
 void logger_write(const char* line, const char* channel, const char* nick)
 {
   const char* home=getenv("HOME");
+  if(!home){home=".";}
   const char* path=config_get_str(nick?"logpath_pm":"logpath_channel");
   int namelen=strlen(path)+1;
   namelen+=strcount(path, "%h")*(strlen(home)-2);