aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dlib/dlib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/dlib/dlib.c b/dlib/dlib.c
index 310e9976..a4a63995 100644
--- a/dlib/dlib.c
+++ b/dlib/dlib.c
@@ -852,6 +852,9 @@ char *dGethomedir ()
} else if (getenv("HOMEDRIVE") && getenv("HOMEPATH")) {
homedir = dStrconcat(getenv("HOMEDRIVE"), getenv("HOMEPATH"), NULL);
+ } else {
+ DLIB_MSG("dGethomedir: $HOME not set, using '/'.\n");
+ homedir = dStrdup("/");
}
}
return homedir;