about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-02-06 11:57:03 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-02-06 11:57:03 +0000
commit8b0cc8781764e0d1b203423033fab71774e40016 (patch)
tree0018ea9e0d2ad1308e1d384fdba3e5859dc99ed2 /Src/utils.c
parent800c270d4d75aaa668da906383ae6b41f952f6f5 (diff)
downloadzsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.gz
zsh-8b0cc8781764e0d1b203423033fab71774e40016.tar.xz
zsh-8b0cc8781764e0d1b203423033fab71774e40016.zip
22195: don't set HOME in the shell
Diffstat (limited to 'Src/utils.c')
-rw-r--r--Src/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/utils.c b/Src/utils.c
index 5a1c5ab30..dcaac9661 100644
--- a/Src/utils.c
+++ b/Src/utils.c
@@ -630,8 +630,8 @@ finddir(char *s)
      * whenever a node is added to or removed from the hash table, and *
      * whenever the value of $HOME changes.  (On startup, too.)        */
     if (!s) {
-	homenode.dir = home;
-	homenode.diff = strlen(home);
+	homenode.dir = home ? home : "";
+	homenode.diff = home ? strlen(home) : 0;
 	if(homenode.diff==1)
 	    homenode.diff = 0;
 	if(!finddir_full)