From 1b363034ce431c463646c40c9245b011e2f940ee Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Fri, 23 Nov 2007 02:32:56 +0000 Subject: 24113: createparamtable() was still messing with the internals of the environment even when USE_SET_UNSET_ENV. --- Src/params.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/params.c') diff --git a/Src/params.c b/Src/params.c index 993eaa097..0fe1a6dd8 100644 --- a/Src/params.c +++ b/Src/params.c @@ -692,13 +692,17 @@ createparamtable(void) getsparam(pm->node.nam), pm->node.flags); else pm->env = ztrdup(*envp2); +#ifndef USE_SET_UNSET_ENV *envp++ = pm->env; +#endif } } } } popheap(); +#ifndef USE_SET_UNSET_ENV *envp = '\0'; +#endif opts[ALLEXPORT] = oae; if (emulation == EMULATE_ZSH) -- cgit 1.4.1