summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/params.c4
1 files changed, 4 insertions, 0 deletions
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)