From ab3c63ff9b9d0b0dbbf1e69a50ef366cbfe64c94 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 26 Jul 2007 08:58:08 +0000 Subject: 23702: fix installing executable scripts 23703: getenv() should be zgetenv() --- Src/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/init.c') diff --git a/Src/init.c b/Src/init.c index e885c79b6..980d3b1c9 100644 --- a/Src/init.c +++ b/Src/init.c @@ -832,7 +832,7 @@ setupvals(void) if (emulation == EMULATE_ZSH) ptr = home; else - ptr = getenv("HOME"); + ptr = zgetenv("HOME"); if (ptr && ispwd(ptr)) pwd = ztrdup(ptr); else if ((ptr = zgetenv("PWD")) && (strlen(ptr) < PATH_MAX) && -- cgit 1.4.1