about summary refs log tree commit diff
path: root/Src/params.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.w.stephenson@ntlworld.com>2014-12-18 19:55:53 +0000
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2014-12-18 19:55:53 +0000
commitecef922df15c9c315be48871a59b311bd2477f3c (patch)
treeea961587733f394299d627dc7e0745142ea57623 /Src/params.c
parentf3cb9a77543125d4b478f43e068d2a8272d69a0e (diff)
downloadzsh-ecef922df15c9c315be48871a59b311bd2477f3c.tar.gz
zsh-ecef922df15c9c315be48871a59b311bd2477f3c.tar.xz
zsh-ecef922df15c9c315be48871a59b311bd2477f3c.zip
34008: metafy the environment on arrival in the shell
Diffstat (limited to 'Src/params.c')
-rw-r--r--Src/params.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/params.c b/Src/params.c
index b87598a02..1c51afd7a 100644
--- a/Src/params.c
+++ b/Src/params.c
@@ -641,7 +641,7 @@ split_env_string(char *env, char **name, char **value)
     if (!env || !name || !value)
 	return 0;
 
-    tenv = strcpy(zhalloc(strlen(env) + 1), env);
+    tenv = metafy(env, strlen(env), META_HEAPDUP);
     for (str = tenv; *str && *str != '='; str++)
 	;
     if (str != tenv && *str == '=') {