about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-06-20 11:02:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-06-20 11:02:47 +0000
commitef6193b89b4d997aec31d6f36fb5c64db141c3d3 (patch)
tree3f03e68df1626702539ca8cdf2ca894677a841f4 /Src
parent79ed1a0e22f0660eedbd3966ea51d74928d68d26 (diff)
downloadzsh-ef6193b89b4d997aec31d6f36fb5c64db141c3d3.tar.gz
zsh-ef6193b89b4d997aec31d6f36fb5c64db141c3d3.tar.xz
zsh-ef6193b89b4d997aec31d6f36fb5c64db141c3d3.zip
rewrite 14988 as per 14989
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 595d26532..426d151b5 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2395,7 +2395,7 @@ save_params(Estate state, Wordcode pc, LinkList *restore_p, LinkList *remove_p)
 	    } else if (!(pm->flags & PM_READONLY) &&
 		       (unset(RESTRICTED) || !(pm->flags & PM_RESTRICTED))) {
 		Param tpm = (Param) zhalloc(sizeof *tpm);
-		tpm->nam = dupstring(s);
+		tpm->nam = pm->nam;
 		copyparam(tpm, pm, 1);
 		pm = tpm;
 	    }